is_closing -> is_draining

This commit is contained in:
Sergio R. Caprile committed 2023-08-17 16:45:10 -03:00
1 parent 36fcb7ed21
commit 2b20af36a7
8 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ enum {
static void handshake(struct mg_connection *c) {
struct mg_iobuf *r = &c->recv;
if (r->buf[0] != VERSION) {
c->is_closing = 1;
c->is_draining = 1;
} else if (r->len > 2 && (size_t) r->buf[1] + 2 <= r->len) {
/* https://www.ietf.org/rfc/rfc1928.txt paragraph 3 */
uint8_t reply[2] = {VERSION, HANDSHAKE_FAILURE};