ref: 82ce01532d84f919619bc9f2109fff1ec6196133
parent: c56a344329434f13b5b6933760b831c50e819d2d
author: Alex Musolino <alex@musolino.id.au>
date: Mon May 20 11:00:14 EDT 2019
upas/fs: remove read timeout via alarm(2) in pop3resp The alarm note is not handled by upas/fs, so if and when it did fire, the pop3 client process would terminate rendering the entire fs unresponsive.
--- a/sys/src/cmd/upas/fs/pop3.c
+++ b/sys/src/cmd/upas/fs/pop3.c
@@ -89,14 +89,11 @@
char *s;
char *p;
- alarm(60*1000);
if((s = Brdstr(&pop->bin, '\n', 0)) == nil){close(pop->fd);
pop->fd = -1;
- alarm(0);
return "unexpected eof";
}
- alarm(0);
p = s + strlen(s) - 1;
while(p >= s && (*p == '\r' || *p == '\n'))
--
⑨