git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1966
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <poll.h>
#include "shmlog.h"
#include "cache.h"
bes_nextfd(struct sess *sp)
{
struct vbe_conn *vc;
- struct pollfd pfd;
struct backend *bp;
int reuse = 0;
struct bes *bes;
if (vc == NULL)
break;
- /* Test the connection for remote close before we use it */
- pfd.fd = vc->fd;
- pfd.events = POLLIN;
- pfd.revents = 0;
- if (!poll(&pfd, 1, 0)) {
+ if (VBE_CheckFd(vc->fd)) {
/* XXX locking of stats */
VSL_stats->backend_reuse += reuse;
VSL_stats->backend_conn++;