#719 wantread/wantwrite issue for ssl connections in server_select
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: