Sorry, it looks like my brain had confused CLOSE_WAIT with TIME_WAIT. As most connections are hanging in CLOSE_WAIT with no data to send, it looks more like an application error, i.e. lighttpd not closing sockets it should be closing.