mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 20:41:27 -04:00
add comment to new consider_reading code
This commit is contained in:
parent
2aa036fa04
commit
ebf82199df
@ -772,6 +772,14 @@ consider_reading(struct bufferevent_openssl *bev_ssl)
|
|||||||
if (do_read(bev_ssl, n_to_read) <= 0)
|
if (do_read(bev_ssl, n_to_read) <= 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* Read all pending data. This won't hit the network
|
||||||
|
* again, and will (most importantly) put us in a state
|
||||||
|
* where we don't need to read anything else until the
|
||||||
|
* socket is readable again. It'll potentially make us
|
||||||
|
* overrun our read high-watermark (somewhat
|
||||||
|
* regrettable). The damage to the rate-limit has
|
||||||
|
* already been done, since OpenSSL went and read a
|
||||||
|
* whole SSL record anyway. */
|
||||||
n_to_read = SSL_pending(bev_ssl->ssl);
|
n_to_read = SSL_pending(bev_ssl->ssl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user