Fixed conction close problem with HTTP 1.0 client
This commit is contained in:
parent
4ce9911837
commit
56c418745f
@ -1783,7 +1783,7 @@ process_server_socket(socket_t sock, size_t keep_alive_max_count,
|
|||||||
time_t write_timeout_usec, T callback) {
|
time_t write_timeout_usec, T callback) {
|
||||||
return process_server_socket_core(
|
return process_server_socket_core(
|
||||||
sock, keep_alive_max_count, keep_alive_timeout_sec,
|
sock, keep_alive_max_count, keep_alive_timeout_sec,
|
||||||
[&](bool close_connection, bool connection_closed) {
|
[&](bool close_connection, bool &connection_closed) {
|
||||||
SocketStream strm(sock, read_timeout_sec, read_timeout_usec,
|
SocketStream strm(sock, read_timeout_sec, read_timeout_usec,
|
||||||
write_timeout_sec, write_timeout_usec);
|
write_timeout_sec, write_timeout_usec);
|
||||||
return callback(strm, close_connection, connection_closed);
|
return callback(strm, close_connection, connection_closed);
|
||||||
@ -5534,7 +5534,7 @@ process_server_socket_ssl(SSL *ssl, socket_t sock, size_t keep_alive_max_count,
|
|||||||
T callback) {
|
T callback) {
|
||||||
return process_server_socket_core(
|
return process_server_socket_core(
|
||||||
sock, keep_alive_max_count, keep_alive_timeout_sec,
|
sock, keep_alive_max_count, keep_alive_timeout_sec,
|
||||||
[&](bool close_connection, bool connection_closed) {
|
[&](bool close_connection, bool &connection_closed) {
|
||||||
SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec,
|
SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec,
|
||||||
write_timeout_sec, write_timeout_usec);
|
write_timeout_sec, write_timeout_usec);
|
||||||
return callback(strm, close_connection, connection_closed);
|
return callback(strm, close_connection, connection_closed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user