* remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
instead of on tmp_desc.
This commit is contained in:
parent
a5d1b3b53e
commit
aa0403d920
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
|
|
||||||
|
* remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
|
||||||
|
instead of on tmp_desc.
|
||||||
|
|
||||||
2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
|
2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
Daniel Jacobowitz <dan@codesourcery.com>
|
Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,8 @@ remote_open (char *name)
|
||||||
|
|
||||||
/* Enable TCP keep alive process. */
|
/* Enable TCP keep alive process. */
|
||||||
tmp = 1;
|
tmp = 1;
|
||||||
setsockopt (tmp_desc, SOL_SOCKET, SO_KEEPALIVE, (char *) &tmp, sizeof (tmp));
|
setsockopt (remote_desc, SOL_SOCKET, SO_KEEPALIVE,
|
||||||
|
(char *) &tmp, sizeof (tmp));
|
||||||
|
|
||||||
/* Tell TCP not to delay small packets. This greatly speeds up
|
/* Tell TCP not to delay small packets. This greatly speeds up
|
||||||
interactive response. */
|
interactive response. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue