closed its connection immediately after connecting but before sending
any data.
+/* mr_cont_accept returns 0 if it has failed, an fd if it has succeeded,
+ or -1 if it is still making progress */
+
int mr_cont_accept(int conn, char **buf, int *nread)
{
long len, more;
int mr_cont_accept(int conn, char **buf, int *nread)
{
long len, more;
if (read(conn, lbuf, 4) != 4)
{
close(conn);
if (read(conn, lbuf, 4) != 4)
{
close(conn);
}
getlong(lbuf, len);
len += 4;
}
getlong(lbuf, len);
len += 4;