The Samba-Bugzilla – Attachment 12815 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.5
12509-4.5.patch (text/plain), 1.08 KB, created by
Volker Lendecke
on 2017-01-10 12:47:28 UTC
(
hide
)
Description:
Patch for 4.5
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2017-01-10 12:47:28 UTC
Size:
1.08 KB
patch
obsolete
>From 8290210d762c6aa27bbe671aceacac00f23cffb3 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> >--- > source3/lib/messages.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/source3/lib/messages.c b/source3/lib/messages.c >index 98bcf829e15..8e404f7ecdb 100644 >--- a/source3/lib/messages.c >+++ b/source3/lib/messages.c >@@ -470,6 +470,17 @@ int messaging_send_iov_from(struct messaging_context *msg_ctx, > ret = messaging_dgm_send(dst.pid, iov2, iovlen+1, fds, num_fds); > 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; > } > >-- >2.11.0 >
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
Actions:
View
Attachments on
bug 12509
:
12814
|
12815
|
12821
|
12822