mhd_send: always call post_cork_setsockopt() after send()

This commit is contained in:
Evgeny Grin (Karlson2k)
2020-11-29 19:41:22 +03:00
parent 7f6084e630
commit f06d01317d
+2 -2
View File
@@ -432,8 +432,8 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
else if (buffer_size > (size_t) ret)
connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY;
#endif /* EPOLL_SUPPORT */
if (buffer_size == (size_t) ret)
post_cork_setsockopt (connection, want_cork);
post_cork_setsockopt (connection,
want_cork ? (buffer_size == (size_t) ret) : false);
}
return ret;