Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
increase the packet size of the client socket
Browse files Browse the repository at this point in the history
  • Loading branch information
jkvor committed Jun 17, 2011
1 parent d2c4d6d commit 66670e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/logplex_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ handlers() ->
Socket = Req:get(socket),
Req:start_response({200, ?HDR}),

inet:setopts(Socket, [{nodelay, true}, {packet_size, 1024 * 1024}, {recbuf, 1024 * 1024}]),

filter_and_send_logs(Socket, Logs, Filters, Num0),

case proplists:get_value(<<"tail">>, Data) of
Expand Down

0 comments on commit 66670e0

Please sign in to comment.