Browse Source

Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal.

STABLE-2_1_x
goldsimon 16 years ago
parent
commit
92cdc1e33f
  1. 3
      CHANGELOG
  2. 2
      src/include/lwip/err.h

3
CHANGELOG

@ -233,6 +233,9 @@ HISTORY
++ Bugfixes:
2010-11-20: Simon Goldschmidt
* err.h: Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal.
2010-11-20: Simon Goldschmidt
* sockets.c: Fixed bug #31590: getsockopt(... SO_ERROR ...) gives EINPROGRESS
after a successful nonblocking connection.

2
src/include/lwip/err.h

@ -58,7 +58,7 @@ typedef s8_t err_t;
#define ERR_VAL -6 /* Illegal value. */
#define ERR_WOULDBLOCK -7 /* Operation would block. */
#define ERR_IS_FATAL(e) ((e) < ERR_VAL)
#define ERR_IS_FATAL(e) ((e) < ERR_WOULDBLOCK)
#define ERR_ABRT -8 /* Connection aborted. */
#define ERR_RST -9 /* Connection reset. */

Loading…
Cancel
Save