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 2ec3827 commit 62a3bb5Copy full SHA for 62a3bb5
contrib/multimaster/sockhub/sockhub.c
@@ -335,10 +335,14 @@ void ShubLoop(Shub* shub)
335
for (j = 0; j < n; j++) {
336
i = events[j].data.fd;
337
if (events[j].events & EPOLLERR) {
338
- if (i != shub->input && i != shub->output) {
+ if (i == shub->input) {
339
+ shub->params->error_handler("Input socket error", SHUB_FATAL_ERROR);
340
+ } else if (i == shub->output) {
341
+ reconnect(shub);
342
+ } else {
343
notify_disconnect(shub, i);
344
+ close_socket(shub, i);
345
}
- close_socket(shub, i);
346
} else if (events[j].events & EPOLLIN) {
347
#else
348
for (i = 0; i <= max_fd; i++) {
0 commit comments