Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
39c3db94
Commit
39c3db94
authored
Aug 04, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We shouldn't hold connections across retries.
parent
ae35a87c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ZServer/FTPRequest.py
ZServer/FTPRequest.py
+1
-1
lib/python/ZPublisher/HTTPRequest.py
lib/python/ZPublisher/HTTPRequest.py
+3
-3
lib/python/ZServer/FTPRequest.py
lib/python/ZServer/FTPRequest.py
+1
-1
No files found.
ZServer/FTPRequest.py
View file @
39c3db94
...
...
@@ -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
):
...
...
lib/python/ZPublisher/HTTPRequest.py
View file @
39c3db94
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.2
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
1
$'
[
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_coun
t
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
):
...
...
lib/python/ZServer/FTPRequest.py
View file @
39c3db94
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment