Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 694300 Details for
Bug 905484
ncat terminates the transaction before all data were sent
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix TCP issue based on latest upstream SVN
0001-Ncat-client-quit-event-loop-on-EOF-only-if-recvonly.patch (text/plain), 1.10 KB, created by
Tomáš Hozza
on 2013-02-07 08:53:58 UTC
(
hide
)
Description:
Patch to fix TCP issue based on latest upstream SVN
Filename:
MIME Type:
Creator:
Tomáš Hozza
Created:
2013-02-07 08:53:58 UTC
Size:
1.10 KB
patch
obsolete
>From 9710aa51945e81edae5e388724a5e4de22fd85c2 Mon Sep 17 00:00:00 2001 >From: Tomas Hozza <thozza@redhat.com> >Date: Thu, 7 Feb 2013 09:11:31 +0100 >Subject: [PATCH] Ncat: client quit event loop on EOF only if recvonly > >Ncat acting as a clinet should call nsock_loop_quit() >on reading EOF from socket only if o.recvonly is set. >If not, Ncat should call shutdown(<sock_fd>, SHUT_RD). > >Signed-off-by: Tomas Hozza <thozza@redhat.com> >--- > ncat/ncat_connect.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/ncat/ncat_connect.c b/ncat/ncat_connect.c >index 7cf21d6..eea430d 100644 >--- a/ncat/ncat_connect.c >+++ b/ncat/ncat_connect.c >@@ -834,7 +834,10 @@ static void read_socket_handler(nsock_pool nsp, nsock_event evt, void *data) > ncat_assert(type == NSE_TYPE_READ); > > if (status == NSE_STATUS_EOF) { >- nsock_loop_quit(nsp); >+ if (o.recvonly) >+ nsock_loop_quit(nsp); >+ else >+ shutdown(nsi_getsd(cs.sock_nsi), SHUT_RD); > return; > } else if (status == NSE_STATUS_ERROR) { > loguser("%s.\n", socket_strerror(nse_errorcode(evt))); >-- >1.8.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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 905484
: 694300 |
694979