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
8544be85
Commit
8544be85
authored
Jan 15, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert to original with one bug fix, found terminator.
parent
03058804
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
4 deletions
+52
-4
ZServer/medusa/http_server.py
ZServer/medusa/http_server.py
+26
-2
lib/python/ZServer/medusa/http_server.py
lib/python/ZServer/medusa/http_server.py
+26
-2
No files found.
ZServer/medusa/http_server.py
View file @
8544be85
...
...
@@ -9,7 +9,7 @@
# interested in using this software in a commercial context, or in
# purchasing support, please contact the author.
RCS_ID
=
'$Id: http_server.py,v 1.
2 1999/01/13 03:00:27
amos Exp $'
RCS_ID
=
'$Id: http_server.py,v 1.
3 1999/01/15 02:27:04
amos Exp $'
# python modules
import
os
...
...
@@ -420,6 +420,10 @@ class http_channel (asynchat.async_chat):
# no handlers, so complain
r
.
error
(
404
)
def
writable
(
self
):
# this is just the normal async_chat 'writable', here for comparison
return
self
.
ac_out_buffer
or
len
(
self
.
producer_fifo
)
def
writable_for_proxy
(
self
):
# this version of writable supports the idea of a 'stalled' producer
# [i.e., it's not ready to produce any output yet] This is needed by
...
...
@@ -594,12 +598,32 @@ def crack_request (r):
version
=
None
return
string
.
lower
(
REQUEST
.
group
(
1
)),
REQUEST
.
group
(
2
),
version
class
fifo
:
def
__init__
(
self
,
list
=
None
):
if
not
list
:
self
.
list
=
[]
else
:
self
.
list
=
list
def
__len__
(
self
):
return
len
(
self
.
list
)
class
fifo
(
asynchat
.
fifo
):
def
first
(
self
):
return
self
.
list
[
0
]
def
push_front
(
self
,
object
):
self
.
list
.
insert
(
0
,
object
)
def
push
(
self
,
data
):
self
.
list
.
append
(
data
)
def
pop
(
self
):
if
self
.
list
:
result
=
self
.
list
[
0
]
del
self
.
list
[
0
]
return
(
1
,
result
)
else
:
return
(
0
,
None
)
def
compute_timezone_for_log
():
if
time
.
daylight
:
...
...
lib/python/ZServer/medusa/http_server.py
View file @
8544be85
...
...
@@ -9,7 +9,7 @@
# interested in using this software in a commercial context, or in
# purchasing support, please contact the author.
RCS_ID
=
'$Id: http_server.py,v 1.
2 1999/01/13 03:00:27
amos Exp $'
RCS_ID
=
'$Id: http_server.py,v 1.
3 1999/01/15 02:27:04
amos Exp $'
# python modules
import
os
...
...
@@ -420,6 +420,10 @@ class http_channel (asynchat.async_chat):
# no handlers, so complain
r
.
error
(
404
)
def
writable
(
self
):
# this is just the normal async_chat 'writable', here for comparison
return
self
.
ac_out_buffer
or
len
(
self
.
producer_fifo
)
def
writable_for_proxy
(
self
):
# this version of writable supports the idea of a 'stalled' producer
# [i.e., it's not ready to produce any output yet] This is needed by
...
...
@@ -594,12 +598,32 @@ def crack_request (r):
version
=
None
return
string
.
lower
(
REQUEST
.
group
(
1
)),
REQUEST
.
group
(
2
),
version
class
fifo
:
def
__init__
(
self
,
list
=
None
):
if
not
list
:
self
.
list
=
[]
else
:
self
.
list
=
list
def
__len__
(
self
):
return
len
(
self
.
list
)
class
fifo
(
asynchat
.
fifo
):
def
first
(
self
):
return
self
.
list
[
0
]
def
push_front
(
self
,
object
):
self
.
list
.
insert
(
0
,
object
)
def
push
(
self
,
data
):
self
.
list
.
append
(
data
)
def
pop
(
self
):
if
self
.
list
:
result
=
self
.
list
[
0
]
del
self
.
list
[
0
]
return
(
1
,
result
)
else
:
return
(
0
,
None
)
def
compute_timezone_for_log
():
if
time
.
daylight
:
...
...
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