[Varnish] #1101: Varnish cannot use accept filters accf_http

Varnish varnish-bugs at varnish-cache.org
Mon Feb 27 10:40:15 CET 2012


#1101: Varnish cannot use accept filters accf_http
-------------------------------------+--------------------------------------
 Reporter:  allan.jude               |        Type:  defect  
   Status:  new                      |    Priority:  normal  
Milestone:                           |   Component:  varnishd
  Version:  3.0.2                    |    Severity:  minor   
 Keywords:  accept_filter httpready  |  
-------------------------------------+--------------------------------------
 Varnish cannot use FreeBSD accf_http httpready accept filter


 It seems the issue is that setsockopt() is called before listen(), so the
 accept filter returns EINVAL


 {{{

  45411 initial thread CALL  socket(PF_INET,SOCK_STREAM,IPPROTO_TCP)
  45411 initial thread RET   socket 6
  45411 initial thread CALL
 setsockopt(0x6,SOL_SOCKET,SO_REUSEADDR,0xbfbfde48,0x4)
  45411 initial thread RET   setsockopt 0
  45411 initial thread CALL  bind(0x6,0x28317310,0x10)
  45411 initial thread STRU  struct sockaddr { AF_INET, 64.120.14.107:80 }
  45411 initial thread RET   bind 0
  45411 initial thread CALL  ioctl(0x6,FIONBIO,0xbfbfde48)
  45411 initial thread RET   ioctl 0
  45411 initial thread CALL
 setsockopt(0x6,SOL_SOCKET,SO_ACCEPTFILTER,0xbfbfdd4c,0x100)
  45411 initial thread RET   setsockopt -1 errno 22 Invalid argument
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1101>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list