Skip to content
Snippets Groups Projects
Commit 039a4eb8 authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'feature-2792' into 'master'

Feature 2792

See merge request !9
parents 8ed6c9de 6d61d332
No related branches found
No related tags found
1 merge request!9Feature 2792
...@@ -332,6 +332,14 @@ static void *thread_worker_function( void *arg ) ...@@ -332,6 +332,14 @@ static void *thread_worker_function( void *arg )
continue; continue;
} }
//connection already closed (EPOLLHUP - shutdown has been made in both directions)
if(events[n].events & EPOLLHUP && events[n].events & EPOLLERR) {
log_it( L_DEBUG,"Socket error (EPOLLHUP): 0x%x",events[n].events );
if(!(events[n].events & EPOLLIN))
cur->no_close = false;
cur->flags |= DAP_SOCK_SIGNAL_CLOSE;
}
if ( events[n].events & EPOLLERR ) { if ( events[n].events & EPOLLERR ) {
log_it( L_ERROR,"Socket error: %s",strerror(errno) ); log_it( L_ERROR,"Socket error: %s",strerror(errno) );
cur->flags |= DAP_SOCK_SIGNAL_CLOSE; cur->flags |= DAP_SOCK_SIGNAL_CLOSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment