]> err.no Git - varnish/commit
Add a convenience function more for backend methods:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Sep 2007 08:22:59 +0000 (08:22 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Sep 2007 08:22:59 +0000 (08:22 +0000)
commitc8e7ecd8f0f2fde10b0a751de9e720376f11a073
tree3fbed8bdbc9ea5137e70edb1150ccfc7a1fd128c
parent79e1b8c36ef17418d8a6d39136145efa641c199c
Add a convenience function more for backend methods:

VBE_CheckFd(): Check that a filedescriptor is reusable.

Right now we simply poll it with a zero timeout, and if there are
any events, we can't reuse it.

This check may need refinement down the road.

One option would be to attempt to write a CRNL onto the fd and see
that it works.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1965 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_backend.c