mirror of
https://github.com/clearml/dropbear
synced 2025-05-18 18:31:24 +00:00
reword comment for clarity
--HG-- branch : nocircbuffer
This commit is contained in:
parent
f782cf375a
commit
9e66b5a9b1
@ -152,8 +152,10 @@ void session_loop(void(*loophandler)()) {
|
|||||||
FD_ZERO(&readfd);
|
FD_ZERO(&readfd);
|
||||||
dropbear_assert(ses.payload == NULL);
|
dropbear_assert(ses.payload == NULL);
|
||||||
|
|
||||||
/* during initial setup we flush out the KEXINIT packet before
|
/* We delay reading from the input socket during initial setup until
|
||||||
* attempting to read the remote version string, which might block */
|
after we have written out our initial KEXINIT packet (empty writequeue).
|
||||||
|
This means our initial packet can be in-flight while we're doing a blocking
|
||||||
|
read for the remote ident */
|
||||||
if (ses.sock_in != -1 && (ses.remoteident || isempty(&ses.writequeue))) {
|
if (ses.sock_in != -1 && (ses.remoteident || isempty(&ses.writequeue))) {
|
||||||
FD_SET(ses.sock_in, &readfd);
|
FD_SET(ses.sock_in, &readfd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user