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
6f550166
Commit
6f550166
authored
Oct 26, 2008
by
Sidnei da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Make it work with Python 2.4 too
parent
d4c27e43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lib/python/ZServer/HTTPServer.py
lib/python/ZServer/HTTPServer.py
+5
-3
No files found.
lib/python/ZServer/HTTPServer.py
View file @
6f550166
...
...
@@ -45,9 +45,11 @@ from HTTPResponse import make_response
from
ZPublisher.HTTPRequest
import
HTTPRequest
from
App.config
import
getConfiguration
import
asyncore
import
asynchat
from
medusa.http_server
import
http_server
,
get_header
from
medusa.http_server
import
fifo
,
http_channel
,
VERSION_STRING
import
asyncore
from
medusa
import
counter
,
producers
from
medusa.test
import
max_sockets
from
medusa.default_handler
import
unquote
...
...
@@ -335,7 +337,7 @@ class zhttp_channel(http_channel):
def
__init__
(
self
,
server
,
conn
,
addr
):
http_channel
.
__init__
(
self
,
server
,
conn
,
addr
)
if
isinstance
(
self
.
producer_fifo
,
fifo
):
if
isinstance
(
self
.
producer_fifo
,
(
fifo
,
asynchat
.
fifo
)
):
self
.
producer_fifo_push
=
self
.
producer_fifo
.
push
self
.
producer_fifo_first
=
self
.
producer_fifo
.
first
self
.
producer_fifo_pop
=
self
.
producer_fifo
.
pop
...
...
@@ -348,7 +350,7 @@ class zhttp_channel(http_channel):
del
self
.
producer_fifo
[
0
]
self
.
producer_fifo_pop
=
pop
requestCloseOnExec
(
conn
)
self
.
queue
=
[]
self
.
queue
=
[]
self
.
working
=
0
self
.
max_header_len
=
getConfiguration
().
http_header_max_length
...
...
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