consistently.
Fixes #297
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3127
d4fa192b-c00b-0410-8231-
f00ffab90ce4
vtc_log(vl, 3, "Connected to %s fd is %d", c->connect, fd);
http_process(vl, c->spec, fd, 1);
vtc_log(vl, 3, "Closing fd %d", fd);
- AZ(close(fd));
+ TCP_close(&fd);
vtc_log(vl, 2, "Ending");
return (NULL);
http_process(vl, s->spec, fd, 0);
vtc_log(vl, 3, "shutting fd %d", fd);
AZ(shutdown(fd, SHUT_WR));
- assert(close(fd) == 0 || errno == ECONNRESET);
+ TCP_close(&fd);
}
vtc_log(vl, 2, "Ending");
return (NULL);
exit (1);
}
s->tp = 0;
- AZ(close(s->sock));
+ TCP_close(&s->sock);
s->sock = -1;
}