projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15fbb87
)
* luci/libs: http.protocol: prevent oversized read blocks when reading from socket...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 15 Jun 2008 21:43:32 +0000
(21:43 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 15 Jun 2008 21:43:32 +0000
(21:43 +0000)
libs/web/luasrc/http/protocol.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/http/protocol.lua
b/libs/web/luasrc/http/protocol.lua
index b0074b9e393258b848bea6d0516e97285eb65df9..970983d5b5e251593b85989c7d14c0a5abc71a48 100644
(file)
--- a/
libs/web/luasrc/http/protocol.lua
+++ b/
libs/web/luasrc/http/protocol.lua
@@
-520,9
+520,9
@@
function _linereader( obj, bufsz )
elseif type(obj) == "userdata" and ( type(obj.receive) == "function" or type(obj.read) == "function" ) then
if type(obj.read) == "function" then
- __read = function() return obj:read( bufsz ) end
+ __read = function() return obj:read( bufsz
- #_buf
) end
else
- __read = function() return obj:receive( bufsz ) end
+ __read = function() return obj:receive( bufsz
- #_buf
) end
end
-- object is a function