Site icon EfmSoft

What does errno 37 (EALREADY) mean?

 
Could be also:
ConstantTypeOS
KERN_TERMINATEDKern returnMac
ippStsUnknownCacheSizeIntel Ipp StatusAny
ENOLCKerrnoLinux
ECHRNGerrnoSolaris
NPFS_FILE_SYSTEMBugCheck CodeWindows
Previous Next
ENOLCK ECHRNG

EALREADY

The socket already has an unfinished request

EALREADY is a concurrency and state-management result. It commonly appears when code calls connect() again after a nonblocking connection attempt has already returned EINPROGRESS. The second call does not create a second independent connection attempt.

The useful question is not whether the destination is reachable in general, but which part of the program still owns this socket's pending operation. A retry timer, cancellation path, and event-loop callback must not all issue a new connect() against the same descriptor.

How to resolve the state safely

Nearby errors have different meanings

EINPROGRESS describes the first pending result. EISCONN reports a completed connected state. ECONNREFUSED, ETIMEDOUT, and EHOSTUNREACH are final outcomes that may be discovered only after the pending attempt completes.

References


Looking for a different code? Search another status or error code.

Exit mobile version