diff options
author | Micael Karlberg <[email protected]> | 2018-06-29 18:23:55 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-09-18 14:50:18 +0200 |
commit | 24be0729fe3a1ccfd5f0713b565463d6557d8aa7 (patch) | |
tree | 2243a51ada05a3ddeacd443ed6e49262cf79766c /erts/emulator/nifs/common/socket_util.h | |
parent | b09136301525b0717e897ec0864c3d2ea7708758 (diff) | |
download | otp-24be0729fe3a1ccfd5f0713b565463d6557d8aa7.tar.gz otp-24be0729fe3a1ccfd5f0713b565463d6557d8aa7.tar.bz2 otp-24be0729fe3a1ccfd5f0713b565463d6557d8aa7.zip |
[socket-nif] Fixed (stream) recv
Fixed handling of closed in the recv function.
We still need to properly handle when we get
0 bytes of data for other types ock sockets
then stream (its valid for dgram for instance).
OTP-14831
Diffstat (limited to 'erts/emulator/nifs/common/socket_util.h')
-rw-r--r-- | erts/emulator/nifs/common/socket_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/nifs/common/socket_util.h b/erts/emulator/nifs/common/socket_util.h index dedeb8dd7d..add2c8f4be 100644 --- a/erts/emulator/nifs/common/socket_util.h +++ b/erts/emulator/nifs/common/socket_util.h @@ -158,5 +158,8 @@ ERL_NIF_TERM esock_make_error_str(ErlNifEnv* env, char* reason); extern ERL_NIF_TERM esock_make_error_errno(ErlNifEnv* env, int err); +extern +void esock_warning_msg(const char* format, ... ); + #endif // SOCKET_UTIL_H__ |