#719 wantread/wantwrite issue for ssl connections in server_select
Reporter
blastbeat
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Priority-Medium
Status-New
Type-Defect
blastbeat
on
Hi Prosody team,
the script server_select.lua does not correctly handle ssl connections.
There might be "wantreads" during write attemps and vice versa in ssl connections.
But the script does not recognize this (see _sendbuffer, _readbuffer).
I fixed this in luadchs server.lua, because it caused subtle and hard to track bugs:
https://github.com/luadch/luadch/blob/master/core/server.lua
Best,
blastbeat
Hi Prosody team, the script server_select.lua does not correctly handle ssl connections. There might be "wantreads" during write attemps and vice versa in ssl connections. But the script does not recognize this (see _sendbuffer, _readbuffer). I fixed this in luadchs server.lua, because it caused subtle and hard to track bugs: https://github.com/luadch/luadch/blob/master/core/server.lua Best, blastbeat