1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

session: Fix timeout handling.

-2 now means to use the timeout specified in options. It wasn't used
earlier and poll only knows -1 and 0 anyway for special meanings.
This commit is contained in:
rofl0r
2011-08-05 03:00:21 +02:00
committed by Andreas Schneider
parent 563fbe4de8
commit af85337f5f
7 changed files with 87 additions and 58 deletions

View File

@@ -183,7 +183,7 @@ ssh_message ssh_message_get(ssh_session session) {
session->ssh_message_list = ssh_list_new();
}
do {
if (ssh_handle_packets(session,-1) == SSH_ERROR) {
if (ssh_handle_packets(session, -2) == SSH_ERROR) {
leave_function();
return NULL;
}