Project

General

Profile

[UE] Lots of connection in "ERROR" state from non-active IP

Added by sominaltv over 5 years ago

I am using lighttpd (1.4.52) for streaming mp4 videos, I have recently set up SSL for it, and I am experiencing an issue.

When a video is started, a new connection is created/started, when we seek video forward and backward, new connections are keep adding, but those old connections from same ip shows as ERROR, when we close the video, ERROR connection state is still here and its not going away. Please see screenshot in attachment:

I checked using netstat on the server and currently there was no active connection on the server from IP 99.105.237.140 but it was still showing on server-status page. why it is showing the connections of closed videos on the web interface and if anyone can provide any solutions.

I am using following settings in config file:

server.max-connections = 1024 
server.max-fds = 2048
server.max-keep-alive-requests = 6
server.max-keep-alive-idle = 6
server.event-handler = "linux-sysepoll" 
#server.stat-cache-engine = "fam" 
connection.kbytes-per-second = 1024
#server.kbytes-per-second= 0
server.network-backend = "writev" 
evasive.max-conns-per-ip = 24

Replies (5)

RE: Lots of connection in "ERROR" state from non-active IP - Added by gstrauss over 5 years ago

Does the same behavior occur when viewing videos through the same site, but without SSL enabled?

Does the same behavior occur when viewing videos with a different client? What client are you using to view videos?

RE: Lots of connection in "ERROR" state from non-active IP - Added by sominaltv over 5 years ago

Thanks for taking look into this.

It does not do that without SSL, only with SSL. I am using JWPlayer to stream videos on the site. I have tried different client, but its the same.

RE: Lots of connection in "ERROR" state from non-active IP - Added by gstrauss about 5 years ago

Sorry for the delay in response.
Does the same behavior occur with server.event-handler = "poll" ?

I am looking into a few SSL reports:
https://redmine.lighttpd.net/boards/2/topics/8416 (this one)
https://redmine.lighttpd.net/boards/2/topics/8472
https://redmine.lighttpd.net/boards/2/topics/8491

RE: Lots of connection in "ERROR" state from non-active IP - Added by gstrauss almost 5 years ago

sominaltv: have you had a chance to test against lighttpd git master recently? I made an improvement for https://redmine.lighttpd.net/boards/2/topics/8491 and I am wondering if it helps the issue you reported here.

RE: [UE] Lots of connection in "ERROR" state from non-active IP - Added by gstrauss almost 5 years ago

The picture you attached of lighttpd server status is from lighttpd 1.4.39 or earlier, which is at least 3 years old. Please upgrade. Latest lighttpd is lighttpd 1.4.53.

    (1-5/5)