Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

set {nodelay, true} when connecting

  • Loading branch information...
commit 233db1033371893ca0619e2e4c43badce63c4760 1 parent b03c9ef
@wg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/pgsql_sock.erl
View
2  src/pgsql_sock.erl
@@ -47,7 +47,7 @@ init([C, Host, Username, Opts]) ->
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{
Please sign in to comment.
Something went wrong with that request. Please try again.