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 587718 Details for
Bug 826511
libssh2 returns LIBSSH2_ERROR_EAGAIN in blocking mode
[?]
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]
backport of upstream commit 697b4e8
libssh2-bz826511.patch (text/plain), 1.30 KB, created by
Kamil Dudka
on 2012-05-30 12:44:21 UTC
(
hide
)
Description:
backport of upstream commit 697b4e8
Filename:
MIME Type:
Creator:
Kamil Dudka
Created:
2012-05-30 12:44:21 UTC
Size:
1.30 KB
patch
obsolete
>From 907ded5a1d81c443d38e64bafc080ce32abcdef9 Mon Sep 17 00:00:00 2001 >From: Daniel Stenberg <daniel@haxx.se> >Date: Sun, 18 Jul 2010 19:47:21 +0200 >Subject: [PATCH] libssh2_wait_socket: reset error code to "leak" EAGAIN less > >[upstream commit 697b4e8ed7268e635ae7eaaf6b77b522e068467f] > >Since libssh2 often sets LIBSSH2_ERROR_EAGAIN internally before >_libssh2_wait_socket is called, we can decrease some amount of >confusion in user programs by resetting the error code in this function >to reduce the risk of EAGAIN being stored as error when a blocking >function returns. > >Signed-off-by: Kamil Dudka <kdudka@redhat.com> >--- > src/session.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/src/session.c b/src/session.c >index aefc86f..ff6e46d 100644 >--- a/src/session.c >+++ b/src/session.c >@@ -509,6 +509,12 @@ int _libssh2_wait_socket(LIBSSH2_SESSION *session) > int dir; > int rc; > >+ /* since libssh2 often sets EAGAIN internally before this function is >+ called, we can decrease some amount of confusion in user programs by >+ resetting the error code in this function to reduce the risk of EAGAIN >+ being stored as error when a blocking function has returned */ >+ session->err_code = LIBSSH2_ERROR_NONE; >+ > FD_ZERO(&fd); > FD_SET(session->socket_fd, &fd); > >-- >1.7.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 826511
:
587702
|
587703
|
587704
| 587718