search for: short_timeout

Displaying 1 result from an estimated 1 matches for "short_timeout".

Did you mean: abort_timeout
2003 Oct 26
0
Patches for samba 3.0.0 client/client.c
...ig 2003-10-27 01:38:55.000000000 +0800 +++ client.c 2003-10-27 01:38:37.000000000 +0800 @@ -49,6 +49,8 @@ static int process_tok(fstring tok); static int cmd_help(void); +static int connect_timeout = 20*1000; + /* 30 second timeout on most commands */ #define CLIENT_TIMEOUT (30*1000) #define SHORT_TIMEOUT (5*1000) @@ -2533,7 +2535,9 @@ if (have_ip) ip = dest_ip; /* have to open a new connection */ - if (!(c=cli_initialise(NULL)) || (cli_set_port(c, port) != port) || + + if (!(c=cli_initialise(NULL)) || !(c->timeout = connect_timeout) || + (cli_set_port(c, port) != port) ||...