Mercurial > dropbear
comparison session.h @ 1074:10f198d4a308
Make main socket nonblocking. Limit writequeue size.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 20 Mar 2015 23:36:42 +0800 |
parents | 703c7cdd2577 |
children | 94ff5316980f |
comparison
equal
deleted
inserted
replaced
1073:88043f9d40bd | 1074:10f198d4a308 |
---|---|
123 /* Packet buffers/values etc */ | 123 /* Packet buffers/values etc */ |
124 buffer *writepayload; /* Unencrypted payload to write - this is used | 124 buffer *writepayload; /* Unencrypted payload to write - this is used |
125 throughout the code, as handlers fill out this | 125 throughout the code, as handlers fill out this |
126 buffer with the packet to send. */ | 126 buffer with the packet to send. */ |
127 struct Queue writequeue; /* A queue of encrypted packets to send */ | 127 struct Queue writequeue; /* A queue of encrypted packets to send */ |
128 unsigned int writequeue_len; /* Number of bytes pending to send in writequeue */ | |
128 buffer *readbuf; /* From the wire, decrypted in-place */ | 129 buffer *readbuf; /* From the wire, decrypted in-place */ |
129 buffer *payload; /* Post-decompression, the actual SSH packet. | 130 buffer *payload; /* Post-decompression, the actual SSH packet. |
130 May have extra data at the beginning, will be | 131 May have extra data at the beginning, will be |
131 passed to packet processing functions positioned past | 132 passed to packet processing functions positioned past |
132 that, see payload_beginning */ | 133 that, see payload_beginning */ |