From 043cb47a1967a63b316c7bd4cb4232f2e9b0f895 Mon Sep 17 00:00:00 2001
From: Micael Karlberg Some functions allow for an asynchronous call.
This is achieved by setting the Note that all other users are locked out until the
'current user' has called the function (recv in this case). Another message the user must be prepared for (when making asynchronous
+ calls) is the There is currently no support for Windows.
+
+ The caller can now make another
call to the recv function and now expect data.
+
+ This message indicates
+ that the (asynchronous) operation has been aborted.
+ If, for instance, the socket has been
+ closed (by another process),
+
+ The caller can then make another
call to the recv function and now expect data.
The user must also be prepared to receive an abort message:
+
+
+ If the operation is aborted
+ for whatever reason (e.g. if the socket is closed "by someone else").
+ The
Note that all other users are locked out until the 'current user' has called the function (recv in this case). So either immediately call the function or diff --git a/erts/preloaded/ebin/socket.beam b/erts/preloaded/ebin/socket.beam index 892aab1fa0..7f5a27c980 100644 Binary files a/erts/preloaded/ebin/socket.beam and b/erts/preloaded/ebin/socket.beam differ diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl index 59bef4b3b7..ec63eeba64 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -1794,7 +1794,7 @@ recv(Socket, Length) -> Flags :: recv_flags(), Data :: binary(), Reason :: term() - ; (Socket, Length, nowait) -> {ok, Data} | + ; (Socket, Length, Timeout :: nowait) -> {ok, Data} | {ok, SelectInfo} | {ok, {Data, SelectInfo}} | {error, Reason} when -- cgit v1.2.3