mirror of
git://erdgeist.org/opentracker
synced 2025-03-28 13:36:20 +01:00
Handle eagain case in trywrite
This commit is contained in:
parent
e33efb5086
commit
99544a1030
1 changed files with 2 additions and 2 deletions
|
@ -170,9 +170,9 @@ static void handle_dead( const int64 sock ) {
|
|||
|
||||
static void handle_read( const int64 sock, struct ot_workstruct *ws ) {
|
||||
struct http_data* cookie = io_getcookie( sock );
|
||||
ssize_t byte_count;
|
||||
ssize_t byte_count = io_tryread( sock, ws->inbuf, G_INBUF_SIZE );
|
||||
|
||||
if( ( byte_count = io_tryread( sock, ws->inbuf, G_INBUF_SIZE ) ) <= 0 ) {
|
||||
if( byte_count == 0 || byte_count == -3 ) {
|
||||
handle_dead( sock );
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue