Maximum connections on Windows increased to 2048.

Thanks to ericGTT.
This commit is contained in:
Roger A. Light
2018-03-14 10:01:47 +00:00
parent 1ebc301100
commit 0fef6bdee8
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -62,6 +62,7 @@ Broker:
Closes #8.
- Add set_tcp_nodelay option to allow Nagle's algorithm to be disabled on
client sockets. Closes #433.
- Maximum connections on Windows increased to 2048.
Client library:
- Outgoing messages with QoS>1 are no longer retried after a timeout period.
+4
View File
@@ -232,6 +232,10 @@ int main(int argc, char *argv[])
srand(tv.tv_sec + tv.tv_usec);
#endif
#ifdef WIN32
_setmaxstdio(2048);
#endif
memset(&int_db, 0, sizeof(struct mosquitto_db));
net__init();