[Slirp] [Git][slirp/libslirp][master] 2 commits: socket: Handle ECONNABORTED from recv

Samuel Thibault (@sthibaul) gitlab at gitlab.freedesktop.org
Fri Mar 4 18:27:15 UTC 2022



Samuel Thibault pushed to branch master at slirp / libslirp


Commits:
55d498cb by Rich at 2022-03-04T18:17:35+00:00
socket: Handle ECONNABORTED from recv

recv can return ECONNABORTED due to a time-out on the socket. The socket is no longer useable once it enters this state.
- - - - -
bf917b89 by Samuel Thibault at 2022-03-04T18:27:14+00:00
Merge branch 'handle-econnaborted' into 'master'

Handle ECONNABORTED from recv

See merge request slirp/libslirp!116
- - - - -


1 changed file:

- src/socket.c


Changes:

=====================================
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));



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/804110bc5c5d1b777313057f84a9b68bb5b2f448...bf917b89d64f57d9302aba4b2f027ea68fb78c13

-- 
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/804110bc5c5d1b777313057f84a9b68bb5b2f448...bf917b89d64f57d9302aba4b2f027ea68fb78c13
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20220304/38d24675/attachment.htm>


More information about the Slirp mailing list