Commit d39ac1c4 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport [19017]

Patch by ILEoo to make the telnet interface work with "telnet" again (on linux). Looks ok according to the recv(2) manpage. Please fix if this is flawed.
parent 2f7c67fb
...@@ -382,7 +382,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -382,7 +382,7 @@ static void Run( intf_thread_t *p_intf )
cl->i_mode + 2 ); cl->i_mode + 2 );
} }
if( i_recv <= 0 ) if( i_recv == 0 || ( i_recv == -1 && errno != EAGAIN && errno != 0 ) )
{ {
net_Close( cl->fd ); net_Close( cl->fd );
TAB_REMOVE( p_intf->p_sys->i_clients , TAB_REMOVE( p_intf->p_sys->i_clients ,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment