Fix a few dangling bits in client.h
This commit is contained in:
15
src/client.h
15
src/client.h
@@ -4,18 +4,6 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifdef HAS_LISTEN_TIMEOUT
|
|
||||||
|
|
||||||
/** CLIENT_MAX_WAIT_SECS
|
|
||||||
* This is the length of time an inbound migration will wait for a fresh
|
|
||||||
* write before assuming the source has Gone Away. Note: it is *not*
|
|
||||||
* the time from one write to the next, it is the gap between the end of
|
|
||||||
* one write and the start of the next.
|
|
||||||
*/
|
|
||||||
#define CLIENT_MAX_WAIT_SECS 5
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** CLIENT_HANDLER_TIMEOUT
|
/** CLIENT_HANDLER_TIMEOUT
|
||||||
* This is the length of time (in seconds) any request can be outstanding for.
|
* This is the length of time (in seconds) any request can be outstanding for.
|
||||||
* If we spend longer than this in a request, the whole server is killed.
|
* If we spend longer than this in a request, the whole server is killed.
|
||||||
@@ -24,8 +12,7 @@
|
|||||||
|
|
||||||
/** CLIENT_KILLSWITCH_SIGNAL
|
/** CLIENT_KILLSWITCH_SIGNAL
|
||||||
* The signal number we use to kill the server when *any* killswitch timer
|
* The signal number we use to kill the server when *any* killswitch timer
|
||||||
* fires. We don't actually need to install a signal handler for it, the default
|
* fires. The handler gets the fd of the client socket to work with.
|
||||||
* behaviour is perfectly fine.
|
|
||||||
*/
|
*/
|
||||||
#define CLIENT_KILLSWITCH_SIGNAL ( SIGRTMIN + 1 )
|
#define CLIENT_KILLSWITCH_SIGNAL ( SIGRTMIN + 1 )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user