Commit 39c3db94 authored by Jim Fulton's avatar Jim Fulton

We shouldn't hold connections across retries.

parent ae35a87c
......@@ -117,12 +117,12 @@ class FTPRequest(HTTPRequest):
self.other[k]=v
def retry(self):
self.retry_count=self.retry_count+1
r=self.__class__(stdin=self.stdin,
environ=self._orig_env,
response=self.response.retry(),
channel=self, # For my cookies
)
r._held=self._held
return r
def _get_env(self, path, command, channel, stdin):
......
......@@ -83,7 +83,7 @@
#
##############################################################################
__version__='$Revision: 1.20 $'[11:-2]
__version__='$Revision: 1.21 $'[11:-2]
import regex, sys, os, string
from string import lower, atoi, rfind, split, strip, join, upper, find
......@@ -171,14 +171,14 @@ class HTTPRequest(BaseRequest):
args=()
retry_max_count=3
def supports_retry(self): return self.retry_count < self.retry_max_coun
def supports_retry(self): return self.retry_count < self.retry_max_count
def retry(self):
self.retry_count=self.retry_count+1
r=self.__class__(stdin=self.stdin,
environ=self._orig_env,
response=self.response.retry()
)
r._held=self._held
return r
def __init__(self, stdin, environ, response, clean=0):
......
......@@ -117,12 +117,12 @@ class FTPRequest(HTTPRequest):
self.other[k]=v
def retry(self):
self.retry_count=self.retry_count+1
r=self.__class__(stdin=self.stdin,
environ=self._orig_env,
response=self.response.retry(),
channel=self, # For my cookies
)
r._held=self._held
return r
def _get_env(self, path, command, channel, stdin):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment