Elevate log level to warning for situation when socket limit is hit.

This commit is contained in:
Roger A. Light 2018-09-20 12:00:51 +01:00
parent dd0e0d91b0
commit 0e16a248f2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
1.5.3 - 201810xx
================
Broker:
- Elevate log level to warning for situation when socket limit is hit.
1.5.2 - 20180919
================

View File

@ -136,7 +136,7 @@ int net__socket_accept(struct mosquitto_db *db, mosq_sock_t listensock)
COMPAT_CLOSE(new_sock);
}
spare_sock = socket(AF_INET, SOCK_STREAM, 0);
log__printf(NULL, MOSQ_LOG_NOTICE,
log__printf(NULL, MOSQ_LOG_WARNING,
"Unable to accept new connection, system socket count has been exceeded. Try increasing \"ulimit -n\" or equivalent.");
}
return -1;