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
247a385f
Commit
247a385f
authored
Oct 10, 2008
by
Sidnei da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Hack around another direct usage of producer_fifo
parent
740d6eb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lib/python/ZServer/HTTPServer.py
lib/python/ZServer/HTTPServer.py
+10
-2
No files found.
lib/python/ZServer/HTTPServer.py
View file @
247a385f
...
@@ -337,8 +337,16 @@ class zhttp_channel(http_channel):
...
@@ -337,8 +337,16 @@ class zhttp_channel(http_channel):
http_channel
.
__init__
(
self
,
server
,
conn
,
addr
)
http_channel
.
__init__
(
self
,
server
,
conn
,
addr
)
if
isinstance
(
self
.
producer_fifo
,
fifo
):
if
isinstance
(
self
.
producer_fifo
,
fifo
):
self
.
producer_fifo_push
=
self
.
producer_fifo
.
push
self
.
producer_fifo_push
=
self
.
producer_fifo
.
push
self
.
producer_fifo_first
=
self
.
producer_fifo
.
first
self
.
producer_fifo_pop
=
self
.
producer_fifo
.
pop
else
:
else
:
self
.
producer_fifo_push
=
self
.
producer_fifo
.
append
self
.
producer_fifo_push
=
self
.
producer_fifo
.
append
def
first
():
return
self
.
producer_fifo
[
0
]
self
.
producer_fifo_first
=
first
def
pop
():
del
self
.
producer_fifo
[
0
]
self
.
producer_fifo_pop
=
pop
requestCloseOnExec
(
conn
)
requestCloseOnExec
(
conn
)
self
.
queue
=
[]
self
.
queue
=
[]
self
.
working
=
0
self
.
working
=
0
...
@@ -386,10 +394,10 @@ class zhttp_channel(http_channel):
...
@@ -386,10 +394,10 @@ class zhttp_channel(http_channel):
self
.
current_request
.
channel
=
None
# break circ refs
self
.
current_request
.
channel
=
None
# break circ refs
self
.
current_request
=
None
self
.
current_request
=
None
while
self
.
producer_fifo
:
while
self
.
producer_fifo
:
p
=
self
.
producer_fifo
.
first
()
p
=
self
.
producer_fifo
_
first
()
if
p
is
not
None
and
not
isinstance
(
p
,
basestring
):
if
p
is
not
None
and
not
isinstance
(
p
,
basestring
):
p
.
more
()
# free up resources held by producer
p
.
more
()
# free up resources held by producer
self
.
producer_fifo
.
pop
()
self
.
producer_fifo
_
pop
()
dispatcher
.
close
(
self
)
dispatcher
.
close
(
self
)
def
done
(
self
):
def
done
(
self
):
...
...
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