We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c416976 commit 27055fdCopy full SHA for 27055fd
components/mosquitto/port/net__esp_tls.c
@@ -105,7 +105,7 @@ struct mosquitto *net__socket_accept(struct mosquitto__listener_sock *listensock
105
struct mosquitto *new_context;
106
107
new_sock = accept(listensock->sock, NULL, 0);
108
- if (new_sock == INVALID_SOCKET) {
+ if (errno == ERR_MEM || errno == ERR_VAL) {
109
log__printf(NULL, MOSQ_LOG_ERR,
110
"Unable to accept new connection, system socket count has been exceeded. Try increasing \"ulimit -n\" or equivalent.");
111
return NULL;
0 commit comments