mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
If the connection is closed by the peer, any buffered data is given a last chance to be sent (see f27b9319e0da). If the connection is Really closed, no attempt to write will occur, instead epoll will raise the error flag and :onreadable() will be invoked again, where it will try to :close() again for the same reason, thus looping until the connection somehow gets destroyed. By clearing the _connected flag, the second time it passes :onreadable() it should go directly to :destroy(), breaking the loop. Thanks Link Mauve for reporting |
||
---|---|---|
.. | ||
http | ||
resolvers | ||
websocket | ||
adns.lua | ||
connect.lua | ||
cqueues.lua | ||
dns.lua | ||
http.lua | ||
httpserver.lua | ||
server.lua | ||
server_epoll.lua | ||
server_event.lua | ||
server_select.lua | ||
unbound.lua | ||
websocket.lua |