If gw_write returns -1 with errno EAGAIN or EWOULDBLOCK it is not treated like an error.
This commit is contained in:
parent
44c7914f2b
commit
81b52c6256
@ -718,7 +718,9 @@ dcb_write(DCB *dcb, GWBUF *queue)
|
||||
dcb->fd,
|
||||
saved_errno,
|
||||
strerror(saved_errno));
|
||||
} else {
|
||||
} else if (saved_errno != EAGAIN &&
|
||||
saved_errno != EWOULDBLOCK)
|
||||
{
|
||||
skygw_log_write_flush(
|
||||
LOGFILE_ERROR,
|
||||
"Error : Write to dcb %p in "
|
||||
|
Loading…
x
Reference in New Issue
Block a user