Software /
code /
prosody
Comparison
net/server_epoll.lua @ 9995:8d46ecc4bd0c
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 May 2019 04:33:41 +0200 |
parent | 9933:aac4c55721f9 |
parent | 9994:524b8cd76780 |
child | 10061:5c71693c8345 |
comparison
equal
deleted
inserted
replaced
9993:02a41315d275 | 9995:8d46ecc4bd0c |
---|---|
594 end | 594 end |
595 if t == false then return; end | 595 if t == false then return; end |
596 self:set(false); | 596 self:set(false); |
597 self._pausefor = addtimer(t, function () | 597 self._pausefor = addtimer(t, function () |
598 self._pausefor = nil; | 598 self._pausefor = nil; |
599 self:set(true); | |
599 if self.conn and self.conn:dirty() then | 600 if self.conn and self.conn:dirty() then |
600 self:onreadable(); | 601 self:onreadable(); |
601 end | 602 end |
602 self:set(true); | |
603 end); | 603 end); |
604 end | 604 end |
605 | 605 |
606 function interface:pause_writes() | 606 function interface:pause_writes() |
607 self._write_lock = true; | 607 self._write_lock = true; |