[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/3] session: Always request POLLIN


The assumption is that if libssh functions are being invoked, we want
to read data.
---
 src/session.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


From ea94aca59a74cc6a67faa6eff576350fd91c6474 Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@xxxxxxxxxx>
Date: Wed, 6 Nov 2013 11:55:13 -0500
Subject: [PATCH 3/3] session: Always request POLLIN

The assumption is that if libssh functions are being invoked, we want
to read data.
---
 src/session.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/session.c b/src/session.c
index 06e7567..72c186e 100644
--- a/src/session.c
+++ b/src/session.c
@@ -476,9 +476,7 @@ int ssh_handle_packets(ssh_session session, int timeout) {
 
     spoll_in = ssh_socket_get_poll_handle_in(session->socket);
     spoll_out = ssh_socket_get_poll_handle_out(session->socket);
-    if (session->server) {
-        ssh_poll_add_events(spoll_in, POLLIN);
-    }
+    ssh_poll_add_events(spoll_in, POLLIN);
     ctx = ssh_poll_get_ctx(spoll_in);
 
     if (!ctx) {
-- 
1.8.3.1


Archive administrator: postmaster@lists.cynapses.org