Comparison

net/server_event.lua @ 4111:4716c7645ad2

net.server_select, net.server_event: Silence 'error during ssl handshake' for wantread and wantwrite
author Matthew Wild <mwild1@gmail.com>
date Tue, 11 Jan 2011 05:04:08 +0000
parent 4074:d2c9d9f569f9
child 4377:705a8f14427b
comparison
equal deleted inserted replaced
4109:d26db1f936f8 4111:4716c7645ad2
219 self:_start_session( call_onconnect ) 219 self:_start_session( call_onconnect )
220 debug( "ssl handshake done" ) 220 debug( "ssl handshake done" )
221 self.eventhandshake = nil 221 self.eventhandshake = nil
222 return -1 222 return -1
223 end 223 end
224 debug( "error during ssl handshake:", err )
225 if err == "wantwrite" then 224 if err == "wantwrite" then
226 event = EV_WRITE 225 event = EV_WRITE
227 elseif err == "wantread" then 226 elseif err == "wantread" then
228 event = EV_READ 227 event = EV_READ
229 else 228 else
229 debug( "ssl handshake error:", err )
230 self.fatalerror = err 230 self.fatalerror = err
231 end 231 end
232 end 232 end
233 if self.fatalerror then 233 if self.fatalerror then
234 if call_onconnect then 234 if call_onconnect then