1
0
Fork 0

typo "socetAcceptEnableForEpoll" fix

This commit is contained in:
zhefengxu-eaton 2024-06-20 09:11:23 -04:00
parent ebcc3c8f01
commit 1a509fb77d

View file

@ -380,7 +380,7 @@ static size_t gtwa_write_response(void *object,
return nWritten; return nWritten;
} }
static inline void socetAcceptEnableForEpoll(CO_epoll_gtw_t *epGtw) { static inline void socketAcceptEnableForEpoll(CO_epoll_gtw_t *epGtw) {
struct epoll_event ev = {0}; struct epoll_event ev = {0};
int ret; int ret;
@ -602,7 +602,7 @@ void CO_epoll_processGtw(CO_epoll_gtw_t *epGtw,
} }
if (fail) { if (fail) {
socetAcceptEnableForEpoll(epGtw); socketAcceptEnableForEpoll(epGtw);
} }
ep->epoll_new = false; ep->epoll_new = false;
} }
@ -652,7 +652,7 @@ void CO_epoll_processGtw(CO_epoll_gtw_t *epGtw,
log_printf(LOG_CRIT, DBG_ERRNO, "close(gtwa_fd)"); log_printf(LOG_CRIT, DBG_ERRNO, "close(gtwa_fd)");
} }
epGtw->gtwa_fd = -1; epGtw->gtwa_fd = -1;
socetAcceptEnableForEpoll(epGtw); socketAcceptEnableForEpoll(epGtw);
} }
else { else {
CO_GTWA_write(co->gtwa, buf, s); CO_GTWA_write(co->gtwa, buf, s);
@ -688,7 +688,7 @@ void CO_epoll_processGtw(CO_epoll_gtw_t *epGtw,
log_printf(LOG_CRIT, DBG_ERRNO, "close(gtwa_fd), tmo"); log_printf(LOG_CRIT, DBG_ERRNO, "close(gtwa_fd), tmo");
} }
epGtw->gtwa_fd = -1; epGtw->gtwa_fd = -1;
socetAcceptEnableForEpoll(epGtw); socketAcceptEnableForEpoll(epGtw);
} }
else { else {
epGtw->socketTimeoutTmr_us += ep->timeDifference_us; epGtw->socketTimeoutTmr_us += ep->timeDifference_us;