increase from 64 to 512 sockets
This commit is contained in:
parent
1aea4ed658
commit
e29ae84b52
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ manager::manager(size_t nthreads) : free_(true)
|
|||
throw error(SDL_GetError());
|
||||
}
|
||||
|
||||
socket_set = SDLNet_AllocSocketSet(64);
|
||||
socket_set = SDLNet_AllocSocketSet(512);
|
||||
|
||||
worker_pool_man = new network_worker_pool::manager(nthreads);
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ connection accept_connection()
|
|||
LOG_NW << "received connection. Pending handshake...\n";
|
||||
pending_sockets.push_back(sock);
|
||||
if(pending_socket_set == 0) {
|
||||
pending_socket_set = SDLNet_AllocSocketSet(64);
|
||||
pending_socket_set = SDLNet_AllocSocketSet(512);
|
||||
}
|
||||
|
||||
if(pending_socket_set != 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue