diff options
author | Jakub Sławiński | 2005-11-16 20:53:54 +0100 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:15:00 +0200 |
commit | e1c93eb660b5e628c0d3c2bbdaf82dc24c07da84 (patch) | |
tree | 6e53f7909e980171ec1951c370929234eda07a9a /src/afclient.c | |
parent | v0.7.4 (diff) | |
download | apf-e1c93eb660b5e628c0d3c2bbdaf82dc24c07da84.tar.gz |
v0.7.5
- Fixed: manageport option in the afclient config file
- Fixed: severe bug in string_cp
- Fixed: wrong connection type used by afclient when afserver used --nossl
or --nozlib option
- Fixed: broken keep-alive option
Diffstat (limited to 'src/afclient.c')
-rw-r--r-- | src/afclient.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/afclient.c b/src/afclient.c index b450543..a208bf6 100644 --- a/src/afclient.c +++ b/src/afclient.c @@ -87,7 +87,6 @@ main(int argc, char **argv) struct sockaddr* clientAddress; fd_set rset, allset, wset, tmpset; struct timeval keepAlive; - int timeout = 0; char verbose = 0; HttpProxyOptions* hpo = HttpProxyOptions_new(); char hpoUsed = 0; @@ -792,9 +791,9 @@ main(int argc, char **argv) aflog(LOG_T_INIT, LOG_I_INFO, "Trying to reconnect..."); mysleep(ArOptions_get_arDelay(ClientRealm_get_arOptions(pointer))); + ClientRealm_set_realmType(pointer, realmType); } if (temp == 0) { - ClientRealm_set_realmType(pointer, realmType); break; } } while (i); @@ -847,7 +846,7 @@ main(int argc, char **argv) buff[0] = AF_S_KEEP_ALIVE; SslFd_send_message(ClientRealm_get_realmType(pointer), ClientRealm_get_masterSslFd(pointer), buff, 5); - keepAlive.tv_sec = timeout; + keepAlive.tv_sec = ClientRealm_get_keepAliveTimeout(pointer); keepAlive.tv_usec = 0; ClientRealm_set_keepAlive(pointer, keepAlive); } |