Software /
code /
prosody
Comparison
net/server_epoll.lua @ 9932:df73ca804719 0.11
net.server_epoll: Skip delayed continuation read on paused connections
This should prevent #1333 in cases where LuaSockets buffer is "dirty",
i.e. contains more data after a read, where it gets resumed with a
short delay.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Mar 2019 12:52:55 +0100 |
parent | 9931:485231f8b75d |
child | 9933:aac4c55721f9 |
child | 9994:524b8cd76780 |
comparison
equal
deleted
inserted
replaced
9931:485231f8b75d | 9932:df73ca804719 |
---|---|
371 self:destroy() | 371 self:destroy() |
372 return; | 372 return; |
373 end | 373 end |
374 end | 374 end |
375 if not self.conn then return; end | 375 if not self.conn then return; end |
376 if self.conn:dirty() then | 376 if self._wantread and self.conn:dirty() then |
377 self:setreadtimeout(false); | 377 self:setreadtimeout(false); |
378 self:pausefor(cfg.read_retry_delay); | 378 self:pausefor(cfg.read_retry_delay); |
379 else | 379 else |
380 self:setreadtimeout(); | 380 self:setreadtimeout(); |
381 end | 381 end |