projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
991b66a
)
mod_proxy65: Only lock the reading side when throttling
author
Sjoerd Simons
<sjoerd.simons@collabora.co.uk>
Thu, 3 Dec 2009 16:02:38 +0000
(17:02 +0100)
committer
Sjoerd Simons
<sjoerd.simons@collabora.co.uk>
Thu, 3 Dec 2009 16:02:38 +0000
(17:02 +0100)
plugins/mod_proxy65.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_proxy65.lua
b/plugins/mod_proxy65.lua
index 01ff9befe202bc75ea66b53405de8115e6a84513..0858c409376914d3f28a94e42947401c0b8c1a3e 100644
(file)
--- a/
plugins/mod_proxy65.lua
+++ b/
plugins/mod_proxy65.lua
@@
-262,7
+262,7
@@
function throttle_sending(sender, receiver)
function receiver.sendbuffer()
_sendbuffer();
if sender_locked and receiver.bufferlen() < sender_lock_threshold then
- sender:lock(false); -- Unlock now
+ sender:lock
_read
(false); -- Unlock now
sender_locked = nil;
end
end
@@
-272,7
+272,7
@@
function throttle_sending(sender, receiver)
_readbuffer();
if not sender_locked and receiver.bufferlen() >= sender_lock_threshold then
sender_locked = true;
- sender:lock(true);
+ sender:lock
_read
(true);
end
end
end