Author: titmuss
Date: Wed Jan 30 09:57:48 2008
New Revision: 1703

URL: http://svn.slimdevices.com?rev=1703&root=Jive&view=rev
Log:
Bug: 6763
Description:
Need to store the http connection close property, the request is nil if the 
connection is closed locally.


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=1703&root=Jive&r1=1702&r2=1703&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 Wed Jan 30 
09:57:48 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

Reply via email to