Anton Lebedevich 13 years ago
parent
commit
5bb1f687c6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/pgsql_sock.erl

+ 1 - 0
src/pgsql_sock.erl

@@ -34,6 +34,7 @@ init([C, Host, Username, Opts]) ->
 
 
     Port = proplists:get_value(port, Opts, 5432),
     Port = proplists:get_value(port, Opts, 5432),
     SockOpts = [{active, false}, {packet, raw}, binary, {nodelay, true}],
     SockOpts = [{active, false}, {packet, raw}, binary, {nodelay, true}],
+    %% TODO connect timeout
     {ok, S} = gen_tcp:connect(Host, Port, SockOpts),
     {ok, S} = gen_tcp:connect(Host, Port, SockOpts),
 
 
     State = #state{
     State = #state{