Changeset View
Changeset View
Standalone View
Standalone View
head/stand/libsa/net.c
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Maximum wait time for sending and receiving before we give up and timeout. | * Maximum wait time for sending and receiving before we give up and timeout. | ||||
* If set to 0, operations will eventually timeout completely, but send/recv | * If set to 0, operations will eventually timeout completely, but send/recv | ||||
* timeouts must progress exponentially from MINTMO to MAXTMO before final | * timeouts must progress exponentially from MINTMO to MAXTMO before final | ||||
* timeout is hit. | * timeout is hit. | ||||
*/ | */ | ||||
#ifndef MAXWAIT | #ifndef MAXWAIT | ||||
#define MAXWAIT 0 /* seconds */ | #define MAXWAIT 300 /* seconds */ | ||||
#endif | #endif | ||||
#if MAXWAIT < 0 | #if MAXWAIT < 0 | ||||
#error MAXWAIT must not be a negative number | #error MAXWAIT must not be a negative number | ||||
#endif | #endif | ||||
/* | /* | ||||
* Send a packet and wait for a reply, with exponential backoff. | * Send a packet and wait for a reply, with exponential backoff. | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |