aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c
index b70d727..6a3ddb1 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -217,8 +217,8 @@ int soread(struct socket *so)
errno, strerror(errno));
sofcantrcvmore(so);
- if (err == ECONNRESET || err == ECONNREFUSED || err == ENOTCONN ||
- err == EPIPE) {
+ if (err == ECONNABORTED || err == ECONNRESET || err == ECONNREFUSED ||
+ err == ENOTCONN || err == EPIPE) {
tcp_drop(sototcpcb(so), err);
} else {
tcp_sockclosed(sototcpcb(so));