Drop the MAX_CONNS macro and define TCP_CONNECTION_LIMIT, TCP_POLL_CAPACITY, TCP_EVENT_CAPACITY instead
This commit is contained in:
+4
-4
@@ -15,8 +15,8 @@
|
||||
|
||||
int metadata_server_main(int argc, char **argv)
|
||||
{
|
||||
void *contexts[MAX_CONNS+1];
|
||||
struct pollfd polled[MAX_CONNS+1];
|
||||
void *contexts[TCP_POLL_CAPACITY];
|
||||
struct pollfd polled[TCP_POLL_CAPACITY];
|
||||
int num_polled;
|
||||
int timeout = -1;
|
||||
MetadataServer state;
|
||||
@@ -37,8 +37,8 @@ int metadata_server_main(int argc, char **argv)
|
||||
|
||||
int chunk_server_main(int argc, char **argv)
|
||||
{
|
||||
void *contexts[MAX_CONNS+1];
|
||||
struct pollfd polled[MAX_CONNS+1];
|
||||
void *contexts[TCP_POLL_CAPACITY];
|
||||
struct pollfd polled[TCP_POLL_CAPACITY];
|
||||
int num_polled;
|
||||
int timeout = -1;
|
||||
ChunkServer state;
|
||||
|
||||
Reference in New Issue
Block a user