Author: titmuss
Date: Tue Feb 12 08:56:03 2008
New Revision: 1918
URL: http://svn.slimdevices.com?rev=1918&root=Jive&view=rev
Log:
Bug: 7074
Description:
Revert change for jive-by-length, this caused problems with firmware upgrades.
Modified:
branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua
Modified: branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua?rev=1918&root=Jive&r1=1917&r2=1918&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua (original)
+++ branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua Tue Feb 12
08:56:03 2008
@@ -511,9 +511,11 @@
if length <= 0 then
return nil, 'done'
end
-
+
+ local size = math.min(BLOCKSIZE, length)
+
local chunk, err
- chunk, err, partial = sock:receive(length,
partial)
+ chunk, err, partial = sock:receive(size,
partial)
if err then -- including timeout
return nil, err
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins