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