diff options
author | Sander Vrijders <[email protected]> | 2017-08-30 13:28:25 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-08-30 13:28:25 +0200 |
commit | 521f5f0889bf7b56ade00395e0cfc0d4727dada5 (patch) | |
tree | abb32df5638e435767f723ad044013958db0d5b6 /src/irmd/ipcp.c | |
parent | 8fe0340d2117cf9b5c724ff10621978ef2bee5f1 (diff) | |
download | ouroboros-521f5f0889bf7b56ade00395e0cfc0d4727dada5.tar.gz ouroboros-521f5f0889bf7b56ade00395e0cfc0d4727dada5.zip |
irmd: Add specific timeout for IPCP connect
This adds a specific timeout for IPCP connect, since it may take a lot
longer than the regular socket timeout due to flow allocations in the
IPCP.
Diffstat (limited to 'src/irmd/ipcp.c')
-rw-r--r-- | src/irmd/ipcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irmd/ipcp.c b/src/irmd/ipcp.c index 794d060e..497bff9f 100644 --- a/src/irmd/ipcp.c +++ b/src/irmd/ipcp.c @@ -96,6 +96,10 @@ ipcp_msg_t * send_recv_ipcp_msg(pid_t api, tv.tv_sec = QUERY_TIMEOUT / 1000; tv.tv_usec = (QUERY_TIMEOUT % 1000) * 1000; break; + case IPCP_MSG_CODE__IPCP_CONNECT: + tv.tv_sec = CONNECT_TIMEOUT / 1000; + tv.tv_usec = (CONNECT_TIMEOUT % 1000) * 1000; + break; default: tv.tv_sec = SOCKET_TIMEOUT / 1000; tv.tv_usec = (SOCKET_TIMEOUT % 1000) * 1000; |