Author: titmuss
Date: Wed Jan 30 10:22:58 2008
New Revision: 1706
URL: http://svn.slimdevices.com?rev=1706&root=Jive&view=rev
Log:
[EMAIL PROTECTED] (orig r1703): titmuss | 2008-01-30 17:57:48 +0000
Bug: 6763
Description:
Need to store the http connection close property, the request is nil if the
connection is closed locally.
Modified:
trunk/ (props changed)
trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua
Propchange: trunk/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Wed Jan 30 10:22:58 2008
@@ -1,3 +1,3 @@
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1702
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1703
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378
Modified: trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua?rev=1706&root=Jive&r1=1705&r2=1706&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua (original)
+++ trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua Wed Jan 30 10:22:58
2008
@@ -641,6 +641,8 @@
mode = 'jive-until-closed'
end
end
+
+ local connectionClose =
self.t_httpRequest:t_getResponseHeader('Connection') == 'close'
local source = socket.source(mode, self.t_sock, len or self)
@@ -677,7 +679,7 @@
return
end
- if self.t_httpRequest:t_getResponseHeader('Connection')
== 'close' then
+ if connectionClose then
-- just close the socket, don't reset our state
SocketTcp.close(self)
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins