"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/liblsquic/lsquic_full_conn.c" between
openlitespeed-1.7.11.src.tgz and openlitespeed-1.7.12.src.tgz

About: OpenLiteSpeed is a high-performance, lightweight HTTP server with optional HTTP/2 support (open sourve version of the commercial LiteSpeed Web Server). Sources.

lsquic_full_conn.c  (openlitespeed-1.7.11.src.tgz):lsquic_full_conn.c  (openlitespeed-1.7.12.src.tgz)
skipping to change at line 3485 skipping to change at line 3485
skip_write: skip_write:
if ((conn->fc_flags & FC_CLOSING) && conn_ok_to_close(conn)) if ((conn->fc_flags & FC_CLOSING) && conn_ok_to_close(conn))
{ {
LSQ_DEBUG("connection is OK to close"); LSQ_DEBUG("connection is OK to close");
/* This is normal termination sequence. /* This is normal termination sequence.
* *
* Generate CONNECTION_CLOSE frame if we are responding to one, have * Generate CONNECTION_CLOSE frame if we are responding to one, have
* packets scheduled to send, or silent close flag is not set. * packets scheduled to send, or silent close flag is not set.
*/ */
conn->fc_flags |= FC_TICK_CLOSE; conn->fc_flags |= FC_TICK_CLOSE;
tick |= TICK_CLOSE; if (conn->fc_flags & FC_RECV_CLOSE)
tick |= TICK_CLOSE;
if ((conn->fc_flags & FC_RECV_CLOSE) || if ((conn->fc_flags & FC_RECV_CLOSE) ||
0 != lsquic_send_ctl_n_scheduled(&conn->fc_send_ctl) || 0 != lsquic_send_ctl_n_scheduled(&conn->fc_send_ctl) ||
!conn->fc_settings->es_silent_close) !conn->fc_settings->es_silent_close)
{ {
RETURN_IF_OUT_OF_PACKETS(); RETURN_IF_OUT_OF_PACKETS();
generate_connection_close_packet(conn); generate_connection_close_packet(conn);
tick |= TICK_SEND; tick |= TICK_SEND|TICK_CLOSE;
} }
else
tick |= TICK_CLOSE;
goto end; goto end;
} }
if (0 == lsquic_send_ctl_n_scheduled(&conn->fc_send_ctl)) if (0 == lsquic_send_ctl_n_scheduled(&conn->fc_send_ctl))
{ {
if (conn->fc_flags & FC_SEND_PING) if (conn->fc_flags & FC_SEND_PING)
{ {
RETURN_IF_OUT_OF_PACKETS(); RETURN_IF_OUT_OF_PACKETS();
conn->fc_flags &= ~FC_SEND_PING; conn->fc_flags &= ~FC_SEND_PING;
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)