Revert "Send blank line after 10 minutes idle"

This reverts commit 1d5c4a5e34.

This is fixed instead by pounce using TCP keepalive.
weechat-hashes
C. McEnroe 2020-05-15 10:13:42 -04:00
parent d8ef021506
commit 4282574c18
1 changed files with 1 additions and 6 deletions

7
chat.c
View File

@ -272,7 +272,7 @@ int main(int argc, char *argv[]) {
{ .events = POLLIN, .fd = execPipe[0] }, { .events = POLLIN, .fd = execPipe[0] },
}; };
while (!self.quit) { while (!self.quit) {
int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), 600000); int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), -1);
if (nfds < 0 && errno != EINTR) err(EX_IOERR, "poll"); if (nfds < 0 && errno != EINTR) err(EX_IOERR, "poll");
if (nfds > 0) { if (nfds > 0) {
if (fds[0].revents) uiRead(); if (fds[0].revents) uiRead();
@ -281,11 +281,6 @@ int main(int argc, char *argv[]) {
if (fds[3].revents) execRead(); if (fds[3].revents) execRead();
} }
// XXX: Socket seems to just stop working when connected to something
// like pounce which sends no pings and there is no activity for a long
// time, so just send something...
if (!nfds) ircFormat("\r\n");
if (signals[SIGHUP]) self.quit = "zzz"; if (signals[SIGHUP]) self.quit = "zzz";
if (signals[SIGINT] || signals[SIGTERM]) break; if (signals[SIGINT] || signals[SIGTERM]) break;