examples: Log disconnected in delete_http2_session_data

This commit is contained in:
Tatsuhiro Tsujikawa 2014-01-18 01:17:09 +09:00
parent 2cc28863e9
commit 67d4cb6367
2 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ underlying network socket::
return;
}
if(events & BEV_EVENT_EOF) {
fprintf(stderr, "%s disconnected\n", session_data->client_addr);
fprintf(stderr, "%s EOF\n", session_data->client_addr);
} else if(events & BEV_EVENT_ERROR) {
fprintf(stderr, "%s network error\n", session_data->client_addr);
} else if(events & BEV_EVENT_TIMEOUT) {

View File

@ -205,7 +205,7 @@ static void delete_http2_session_data(http2_session_data *session_data)
{
http2_stream_data *stream_data;
SSL *ssl = bufferevent_openssl_get_ssl(session_data->bev);
fprintf(stderr, "%s disconnected\n", session_data->client_addr);
if(ssl) {
SSL_shutdown(ssl);
}
@ -588,7 +588,7 @@ static void eventcb(struct bufferevent *bev, short events, void *ptr)
return;
}
if(events & BEV_EVENT_EOF) {
fprintf(stderr, "%s disconnected\n", session_data->client_addr);
fprintf(stderr, "%s EOF\n", session_data->client_addr);
} else if(events & BEV_EVENT_ERROR) {
fprintf(stderr, "%s network error\n", session_data->client_addr);
} else if(events & BEV_EVENT_TIMEOUT) {