Backend ignore of SIGPIPE. This occurs if client quits unexpectedly over the UNIX socket.
This is a timing issue but occurs more frequently in large RESTCONF messgaes.
This commit is contained in:
parent
b7c0113331
commit
78bdc4eaca
3 changed files with 12 additions and 1 deletions
|
|
@ -278,6 +278,8 @@ atomicio(ssize_t (*fn) (int, void *, size_t),
|
|||
continue;
|
||||
else if (errno == ECONNRESET)/* Connection reset by peer */
|
||||
res = 0;
|
||||
else if (errno == EPIPE) /* Client shutdown */
|
||||
res = 0;
|
||||
/* SIGPIPE if client is killed */
|
||||
case 0: /* fall thru */
|
||||
return (res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue