Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Sep 11, 2012
Torbjörn Norinder Enable nodelay for tcp. 69ee4d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/zeta_client.erl
View
4 src/zeta_client.erl
@@ -31,8 +31,8 @@ init([Host, Port]) ->
%% Open UDP on a random port
{ok, UDPSock} = gen_udp:open(0, [binary, {active,false}]),
%% Try to make a TCP connection
- {ok, TCPSock} = gen_tcp:connect(Host, Port,
- [binary, {active, false}],
+ {ok, TCPSock} = gen_tcp:connect(Host, Port,
+ [binary, {active, false}, {nodelay, true}],
5000),
{ok, #st{udp = UDPSock, tcp = TCPSock}}.

No commit comments for this range

Something went wrong with that request. Please try again.