mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
"Upgraded" TLS connections: fixed sending of large messages
In epoll mode with internal threads if large enough (>16KB) sending buffer is used, "write ready" status could be cleared when it should not. Note: to have >16KB buffer for sending, connection pool memory should be >32KB + request header size (+ various pointers size).
This commit is contained in:
@@ -1656,8 +1656,6 @@ process_urh (struct MHD_UpgradeResponseHandle *urh)
|
||||
memmove (urh->out_buffer,
|
||||
&urh->out_buffer[res],
|
||||
next_out_buffer_used);
|
||||
if (data_size > (size_t) res)
|
||||
urh->app.celi &= ~((enum MHD_EpollState) MHD_EPOLL_STATE_WRITE_READY);
|
||||
}
|
||||
urh->out_buffer_used = next_out_buffer_used;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user