Skip to content
Browse files

Revert "Increase `recbuf` from the default 8KB to 1MB per GH-37"

This reverts commit b20b5f8.
  • Loading branch information...
1 parent b20b5f8 commit e442ba832bc156b65746a585168f6917bcf4fa01 @aeden aeden committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/erldns_udp_server.erl
2 src/erldns_udp_server.erl
@@ -107,7 +107,7 @@ start(Address, Port, InetFamily) ->
start(Address, Port, InetFamily, SocketOpts) ->
lager:info("Starting UDP server for ~p on address ~p and port ~p (sockopts: ~p)", [InetFamily, Address, Port, SocketOpts]),
- case gen_udp:open(Port, [binary, {active, once}, {read_packets, 1000}, {recbuf, 1024*1024}, {ip, Address}, InetFamily|SocketOpts]) of
+ case gen_udp:open(Port, [binary, {active, once}, {read_packets, 1000}, {ip, Address}, InetFamily|SocketOpts]) of
{ok, Socket} ->
lager:info("UDP server (~p, address: ~p) opened socket: ~p", [InetFamily, Address, Socket]),
{ok, Socket};

0 comments on commit e442ba8

Please sign in to comment.
Something went wrong with that request. Please try again.