mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
tab/whitespace fixes in bufferevent_sock.c
Also note that write() doesn't usually say 0. svn:r1414
This commit is contained in:
parent
bd26bace0d
commit
eff09a299c
@ -209,7 +209,10 @@ bufferevent_writecb(evutil_socket_t fd, short event, void *arg)
|
||||
goto reschedule;
|
||||
what |= BEV_EVENT_ERROR;
|
||||
} else if (res == 0) {
|
||||
/* eof case */
|
||||
/* eof case
|
||||
XXXX Actually, a 0 on write doesn't indicate
|
||||
an EOF. An ECONNRESET might be more typical.
|
||||
*/
|
||||
what |= BEV_EVENT_EOF;
|
||||
}
|
||||
if (res <= 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user