Always ignore EPIPE errors
There's no reason to not ignore EPIPE errors in debug builds.
This commit is contained in:
@ -1873,14 +1873,7 @@ static int gw_write(DCB* dcb, GWBUF* writeq, bool* stop_writing)
|
|||||||
if (written < 0)
|
if (written < 0)
|
||||||
{
|
{
|
||||||
*stop_writing = true;
|
*stop_writing = true;
|
||||||
#if defined (SS_DEBUG)
|
if (saved_errno != EAGAIN && saved_errno != EWOULDBLOCK && saved_errno != EPIPE)
|
||||||
if (saved_errno != EAGAIN
|
|
||||||
&& saved_errno != EWOULDBLOCK)
|
|
||||||
#else
|
|
||||||
if (saved_errno != EAGAIN
|
|
||||||
&& saved_errno != EWOULDBLOCK
|
|
||||||
&& saved_errno != EPIPE)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
MXS_ERROR("Write to %s %s in state %s failed: %d, %s",
|
MXS_ERROR("Write to %s %s in state %s failed: %d, %s",
|
||||||
DCB_STRTYPE(dcb),
|
DCB_STRTYPE(dcb),
|
||||||
|
|||||||
Reference in New Issue
Block a user