-
The number of bytes in the send queue.
Result, number of bytes, is a integer().
diff --git a/lib/kernel/src/socket.erl b/lib/kernel/src/socket.erl
index 68e79e599c34..b37bfbb8351b 100644
--- a/lib/kernel/src/socket.erl
+++ b/lib/kernel/src/socket.erl
@@ -4443,7 +4443,7 @@ peername(Socket) ->
Socket :: socket(),
Reason :: posix() | 'closed';
- (Socket, GetRequest :: 'nread' | 'nwrite' | 'nspace') ->
+ (Socket, GetRequest :: 'nread' | 'nwrite' | 'outq' | 'nspace') ->
{'ok', NumBytes :: non_neg_integer()} | {'error', Reason} when
Socket :: socket(),
Reason :: posix() | 'closed';
@@ -4458,12 +4458,13 @@ peername(Socket) ->
Socket :: socket(),
Reason :: posix() | 'closed'.
-%% gifconf | nread | nwrite | nspace | atmark |
+%% gifconf | nread | nwrite | nspace | outq | atmark |
%% {gifaddr, string()} | {gifindex, string()} | {gifname, integer()}
ioctl(?socket(SockRef), gifconf = GetRequest) ->
prim_socket:ioctl(SockRef, GetRequest);
ioctl(?socket(SockRef), GetRequest) when (nread =:= GetRequest) orelse
(nwrite =:= GetRequest) orelse
+ (outq =:= GetRequest) orelse
(nspace =:= GetRequest) ->
prim_socket:ioctl(SockRef, GetRequest);
ioctl(?socket(SockRef), GetRequest) when (atmark =:= GetRequest) ->