Software /
code /
prosody
Comparison
net/server_event.lua @ 2116:719f95428522
net.server_event: Small whitespace fixes
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Nov 2009 03:49:47 +0000 |
parent | 2115:2d377ff72f79 |
child | 2117:ce42307f0938 |
comparison
equal
deleted
inserted
replaced
2115:2d377ff72f79 | 2116:719f95428522 |
---|---|
219 self:_start_session( onsomething ) | 219 self:_start_session( onsomething ) |
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 ) | 224 debug( "error during ssl handshake:", err ) |
225 if err == "wantwrite" then | 225 if err == "wantwrite" then |
226 event = EV_WRITE | 226 event = EV_WRITE |
227 elseif err == "wantread" then | 227 elseif err == "wantread" then |
228 event = EV_READ | 228 event = EV_READ |
229 else | 229 else |
273 self.interface, self.readcallback = nil, nil | 273 self.interface, self.readcallback = nil, nil |
274 end | 274 end |
275 interfacelist( "delete", self ) | 275 interfacelist( "delete", self ) |
276 return true | 276 return true |
277 end | 277 end |
278 | |
278 function interface_mt:_lock(nointerface, noreading, nowriting) -- lock or unlock this interface or events | 279 function interface_mt:_lock(nointerface, noreading, nowriting) -- lock or unlock this interface or events |
279 self.nointerface, self.noreading, self.nowriting = nointerface, noreading, nowriting | 280 self.nointerface, self.noreading, self.nowriting = nointerface, noreading, nowriting |
280 return nointerface, noreading, nowriting | 281 return nointerface, noreading, nowriting |
281 end | 282 end |
282 | 283 |