Browse Source

[core] close out stream nicely on regular shutdown (fixes openssl session problem)

Change-Id: Iaac73fa64c03225751c4492b5c690094f3d6e97f
personal/stbuehler/wip
Stefan Bühler 7 years ago
parent
commit
10305546cb
  1. 5
      src/main/connection.c

5
src/main/connection.c

@ -165,6 +165,11 @@ static void con_iostream_close(liConnection *con) { /* force close */
LI_FORCE_ASSERT(NULL == con->con_sock.data);
}
static void con_iostream_shutdown(liConnection *con) { /* (try) regular shutdown */
if (NULL != con->con_sock.raw_out) {
con->con_sock.raw_out->out->is_closed = TRUE;
li_stream_notify(con->con_sock.raw_out);
}
if (con->con_sock.callbacks) {
con->con_sock.callbacks->finish(con, FALSE);
}

Loading…
Cancel
Save