The Samba-Bugzilla – Attachment 12822 Details for
Bug 12509
ECONNREFUSED not handled correctly in dgram messaging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.6 incl. cherry-pick information
0001-messaging-Fix-dead-but-not-cleaned-up-yet-destinatio.patch (text/plain), 1.25 KB, created by
Karolin Seeger
on 2017-01-11 09:54:58 UTC
(
hide
)
Description:
Patch for 4.6 incl. cherry-pick information
Filename:
MIME Type:
Creator:
Karolin Seeger
Created:
2017-01-11 09:54:58 UTC
Size:
1.25 KB
patch
obsolete
>From 4a4402cf3529910143bbcd49ace57190bc71a5df Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Tue, 10 Jan 2017 12:30:54 +0000 >Subject: [PATCH] messaging: Fix dead but not cleaned-up-yet destination > sockets > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=12509 > >Signed-off-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Stefan Metzmacher <metze@samba.org> > >Autobuild-User(master): Stefan Metzmacher <metze@samba.org> >Autobuild-Date(master): Tue Jan 10 17:40:58 CET 2017 on sn-devel-144 > >(cherry picked from commit e84e44ce923e5dc7529bb813e10a2890528a4ab0) >--- > source3/lib/messages.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/source3/lib/messages.c b/source3/lib/messages.c >index 505eb66..533e869 100644 >--- a/source3/lib/messages.c >+++ b/source3/lib/messages.c >@@ -626,6 +626,17 @@ int messaging_send_iov_from(struct messaging_context *msg_ctx, > unbecome_root(); > } > >+ if (ret == ECONNREFUSED) { >+ /* >+ * Linux returns this when a socket exists in the file >+ * system without a listening process. This is not >+ * documented in susv4 or the linux manpages, but it's >+ * easily testable. For the higher levels this is the >+ * same as "destination does not exist" >+ */ >+ ret = ENOENT; >+ } >+ > return ret; > } > >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 12509
:
12814
|
12815
|
12821
| 12822