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
078345ed
Commit
078345ed
authored
Mar 29, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for corrupted large FTP downloads. Thanks to Adam Karpierz.
parent
dd44bff7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ZServer/FTPServer.py
ZServer/FTPServer.py
+3
-1
lib/python/ZServer/FTPServer.py
lib/python/ZServer/FTPServer.py
+3
-1
No files found.
ZServer/FTPServer.py
View file @
078345ed
...
@@ -347,6 +347,7 @@ class zope_ftp_channel(ftp_channel):
...
@@ -347,6 +347,7 @@ class zope_ftp_channel(ftp_channel):
self
.
command_not_understood
(
string
.
join
(
line
))
self
.
command_not_understood
(
string
.
join
(
line
))
return
return
response
=
make_response
(
self
,
self
.
retr_completion
,
line
[
1
])
response
=
make_response
(
self
,
self
.
retr_completion
,
line
[
1
])
self
.
_response_producers
=
response
.
stdout
.
_producers
request
=
FTPRequest
(
line
[
1
],
'RETR'
,
self
,
response
)
request
=
FTPRequest
(
line
[
1
],
'RETR'
,
self
,
response
)
handle
(
self
.
module
,
request
,
response
)
handle
(
self
.
module
,
request
,
response
)
...
@@ -357,8 +358,9 @@ class zope_ftp_channel(ftp_channel):
...
@@ -357,8 +358,9 @@ class zope_ftp_channel(ftp_channel):
if
not
response
.
_wrote
:
if
not
response
.
_wrote
:
self
.
client_dc
.
push
(
response
.
body
)
self
.
client_dc
.
push
(
response
.
body
)
else
:
else
:
for
producer
in
response
.
stdout
.
_producers
:
for
producer
in
self
.
_response
_producers
:
self
.
client_dc
.
push_with_producer
(
producer
)
self
.
client_dc
.
push_with_producer
(
producer
)
self
.
_response_producers
=
None
self
.
client_dc
.
close_when_done
()
self
.
client_dc
.
close_when_done
()
self
.
respond
(
self
.
respond
(
"150 Opening %s mode data connection for file '%s'"
%
(
"150 Opening %s mode data connection for file '%s'"
%
(
...
...
lib/python/ZServer/FTPServer.py
View file @
078345ed
...
@@ -347,6 +347,7 @@ class zope_ftp_channel(ftp_channel):
...
@@ -347,6 +347,7 @@ class zope_ftp_channel(ftp_channel):
self
.
command_not_understood
(
string
.
join
(
line
))
self
.
command_not_understood
(
string
.
join
(
line
))
return
return
response
=
make_response
(
self
,
self
.
retr_completion
,
line
[
1
])
response
=
make_response
(
self
,
self
.
retr_completion
,
line
[
1
])
self
.
_response_producers
=
response
.
stdout
.
_producers
request
=
FTPRequest
(
line
[
1
],
'RETR'
,
self
,
response
)
request
=
FTPRequest
(
line
[
1
],
'RETR'
,
self
,
response
)
handle
(
self
.
module
,
request
,
response
)
handle
(
self
.
module
,
request
,
response
)
...
@@ -357,8 +358,9 @@ class zope_ftp_channel(ftp_channel):
...
@@ -357,8 +358,9 @@ class zope_ftp_channel(ftp_channel):
if
not
response
.
_wrote
:
if
not
response
.
_wrote
:
self
.
client_dc
.
push
(
response
.
body
)
self
.
client_dc
.
push
(
response
.
body
)
else
:
else
:
for
producer
in
response
.
stdout
.
_producers
:
for
producer
in
self
.
_response
_producers
:
self
.
client_dc
.
push_with_producer
(
producer
)
self
.
client_dc
.
push_with_producer
(
producer
)
self
.
_response_producers
=
None
self
.
client_dc
.
close_when_done
()
self
.
client_dc
.
close_when_done
()
self
.
respond
(
self
.
respond
(
"150 Opening %s mode data connection for file '%s'"
%
(
"150 Opening %s mode data connection for file '%s'"
%
(
...
...
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