Project

General

Profile

Bug #428

lighttpd doesn't accept connections after some time of working

Added by Anonymous over 11 years ago. Updated 7 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description


# netstat -na | grep LIST | grep 80
tcp        0      0  *.80                   *.*                    LISTEN
# telnet 127.0.0.1 80
Trying 127.0.0.1...  
telnet: connect to address 127.0.0.1: Connection timed out

ktrace from OpenBSD:


32733 lighttpd RET   kevent 0
32733 lighttpd CALL  gettimeofday(0x7f7fffffa640,0)
32733 lighttpd RET   gettimeofday 0
32733 lighttpd CALL  kevent(0x3,0,0,0x46f69000,0x1001,0x7f7fffffa630)
[...] thoose 4 lines repeats slowly...

After restart everything is fine. I have had this issues 3 times, last was before 2 months.
Any ideas how to debug or smth when this appears again?

-- nikns

History

#1 Updated by gstrauss over 1 year ago

(old ticket) Please close.

Please reopen ticket if this is still an issue for you.

#2 Updated by gstrauss over 1 year ago

  • Description updated (diff)
  • Status changed from New to Missing Feedback

If this happens again, look in your error log for things like
"[note] sockets disabled, connection limit reached"
"[note] sockets disabled, out-of-fds"
and please report back.

#3 Updated by gstrauss 7 months ago

  • Status changed from Missing Feedback to Fixed
  • Assignee deleted (jan)
  • Target version set to 1.4.46

lighttpd was using kqueue in edge-triggered mode, but expected level-triggered behavior. This has been fixed in the upcoming lighttpd 1.4.46 to use kqueue in level-triggered mode, the same as the other lighttpd fdevent handlers.

Also available in: Atom