diff options
author | Garrett D'Amore <garrett@damore.org> | 2015-10-21 13:14:02 -0700 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2015-10-21 15:04:16 -0700 |
commit | 2163280c83be0ff6977726e23bb2171113b58f44 (patch) | |
tree | b152cd2cab1bfaee97866927a99b9ab4133550f8 /src/aio | |
parent | aff10b4d11f8aa8edcef4cb1d87a13eb8ed2e18c (diff) | |
download | nanomsg-2163280c83be0ff6977726e23bb2171113b58f44.tar.gz |
fixes #476 TCP shutdown problem
Diffstat (limited to 'src/aio')
-rw-r--r-- | src/aio/usock_posix.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/aio/usock_posix.inc b/src/aio/usock_posix.inc index 81b7efe..477fabe 100644 --- a/src/aio/usock_posix.inc +++ b/src/aio/usock_posix.inc @@ -1,6 +1,7 @@ /* Copyright (c) 2013 Martin Sustrik All rights reserved. Copyright (c) 2013 GoPivotal, Inc. All rights reserved. + Copyright 2015 Garrett D'Amore <garrett@damore.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -1018,8 +1019,6 @@ static int nn_usock_send_raw (struct nn_usock *self, struct msghdr *hdr) else { /* If the connection fails, return ECONNRESET. */ - errno_assert (errno == ECONNRESET || errno == ETIMEDOUT || - errno == EPIPE || errno == ECONNREFUSED || errno == ENOTCONN); return -ECONNRESET; } } @@ -1117,9 +1116,6 @@ static int nn_usock_recv_raw (struct nn_usock *self, void *buf, size_t *len) else { /* If the peer closes the connection, return ECONNRESET. */ - errno_assert (errno == ECONNRESET || errno == ENOTCONN || - errno == ECONNREFUSED || errno == ETIMEDOUT || - errno == EHOSTUNREACH); return -ECONNRESET; } } |