search for: packet_read_poll1

Displaying 2 results from an estimated 2 matches for "packet_read_poll1".

Did you mean: packet_read_poll2
2006 Jul 11
0
Problems with buffer usage in SSH1.
Hello All, I am not sure if this has already been answered, but I couldn't find a solution to this in the archives so I am asking this. I am using OpenSSH 4.2p2. When using SSH1 protocol, the function "packet_read_poll1(void)" in file packet.c, waits till the entire packet of data has been read (line # 967). This may not pose problems with large buffer sizes (more than 30Kb, as it is by default), but when I try to reduce the buffer sizes to say 5Kb, my ssh client seems to be crashing for any incoming packet t...
2001 Aug 20
1
Idletimeout patch, third attempt
..._in, setp); + + /* Wait for some data to arrive. */ + } while (packet_select(connection_in + 1, + setp, NULL, NULL, 0) == -1); /* Read data from the socket. */ len = read(connection_in, buf, sizeof(buf)); @@ -974,6 +1057,7 @@ packet_read_poll2(payload_len_ptr): packet_read_poll1(payload_len_ptr); + idletimeout_check(type); if(compat20) { int reason; if (type != 0) @@ -1217,12 +1301,12 @@ sizeof(fd_mask)); packet_write_poll(); while (packet_have_data_to_write()) { - memset(setp, 0, howmany(connection_out + 1, NFDBITS) * - sizeof(fd_mask)); - F...