mirror of
https://repo.or.cz/socat.git
synced 2025-07-16 16:13:24 +00:00
ECONNRESET,EPIPE on read() and shutdown() are now errors
This commit is contained in:
parent
1861303728
commit
fe4444a70b
4 changed files with 37 additions and 16 deletions
|
@ -59,12 +59,9 @@ ssize_t xioread(xiofile_t *file, void *buff, size_t bufsiz) {
|
|||
if (bytes < 0) {
|
||||
_errno = errno;
|
||||
switch (_errno) {
|
||||
#if 1
|
||||
case EPIPE: case ECONNRESET:
|
||||
Warn4("read(%d, %p, "F_Zu"): %s",
|
||||
pipe->fd, buff, bufsiz, strerror(_errno));
|
||||
break;
|
||||
#endif
|
||||
case EPIPE:
|
||||
case ECONNRESET:
|
||||
/*PASSTHROUGH*/
|
||||
default:
|
||||
Error4("read(%d, %p, "F_Zu"): %s",
|
||||
pipe->fd, buff, bufsiz, strerror(_errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue