Commits

Will Glozer committed 5f90620

set {nodelay, true} when connecting

  • Participants
  • Parent commits bbf341b
  • Tags 1.2

Comments (0)

Files changed (1)

src/pgsql_sock.erl

     end,
 
     Port = proplists:get_value(port, Opts, 5432),
-    SockOpts = [{active, false}, {packet, raw}, binary],
+    SockOpts = [{active, false}, {packet, raw}, binary, {nodelay, true}],
     {ok, S} = gen_tcp:connect(Host, Port, SockOpts),
 
     State = #state{