Menu

#406 Socket handling: check for EAGAIN missing for Linux/Posix

3.0.0.0
closed
2354 (1) 2356 (1)
2024-02-05
2022-12-15
No

To avoid incompatibilities check for Linux/posix also for EAGAIN and not only for EWOULDBLOCK.

man:
EAGAIN or EWOULDBLOCK
The socket is marked nonblocking and no connections are
present to be accepted. POSIX.1-2001 and POSIX.1-2008
allow either error to be returned for this case, and do
not require these constants to have the same value, so a
portable application should check for both possibilities.

Discussion

  • Armin-Hagen Weiss

    • labels: --> 2354
    • status: accepted --> closed
    • assigned_to: Chirag Khangani --> Armin-Hagen Weiss
     
  • Chris Wetzler

    Chris Wetzler - 2023-01-10
    • labels: 2354 --> 2354, 2356
     
  • Chris Wetzler

    Chris Wetzler - 2023-01-10

    duplicate case solved: EWOULDBLOCK is usually binary identical to EAGAIN

     

Log in to post a comment.

MongoDB Logo MongoDB