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
a461b5ef
Commit
a461b5ef
authored
Sep 07, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged 1.6/2.0 compat fix
parent
a7a58b1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
lib/python/Products/ZGadflyDA/gadfly/gfserve.py
lib/python/Products/ZGadflyDA/gadfly/gfserve.py
+1
-1
pcgi/MrCreosote/creosote.py
pcgi/MrCreosote/creosote.py
+5
-5
pcgi/pcgi_publisher.py
pcgi/pcgi_publisher.py
+1
-1
No files found.
lib/python/Products/ZGadflyDA/gadfly/gfserve.py
View file @
a461b5ef
...
...
@@ -332,7 +332,7 @@ class Server:
if
verbose
:
print
"set of REUSEADDR failed"
,
sys
.
exc_type
,
sys
.
exc_value
pass
sock
.
bind
(
self
.
HOST
,
self
.
port
)
sock
.
bind
(
(
self
.
HOST
,
self
.
port
)
)
sock
.
listen
(
self
.
BACKLOG
)
self
.
socket
=
sock
return
sock
...
...
pcgi/MrCreosote/creosote.py
View file @
a461b5ef
...
...
@@ -9,12 +9,12 @@ PORT = 7739
def
spew
(
msg
,
host
=
'localhost'
,
port
=
PORT
):
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
s
.
bind
(
''
,
0
)
s
.
bind
(
(
''
,
0
)
)
s
.
sendto
(
msg
,
(
host
,
port
))
def
bucket
(
port
=
PORT
,
logfile
=
None
):
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
s
.
bind
(
''
,
port
)
s
.
bind
(
(
''
,
port
)
)
print
'creosote bucket waiting on port: %s'
%
port
if
logfile
:
f
=
open
(
logfile
,
'a+'
)
...
...
@@ -41,10 +41,10 @@ class MrCreosote:
return
if
self
.
redirect_server
==
None
:
self
.
redirect_server
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
self
.
redirect_server
.
bind
(
''
,
self
.
port
)
self
.
redirect_server
.
bind
(
(
''
,
self
.
port
)
)
if
self
.
redirect_client
==
None
:
self
.
redirect_client
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
self
.
redirect_client
.
bind
(
''
,
0
)
self
.
redirect_client
.
bind
(
(
''
,
0
)
)
while
1
:
data
,
addr
=
self
.
redirect_server
.
recvfrom
(
BUFSIZE
)
self
.
redirect_client
.
sendto
(
data
,
(
host
,
port
))
...
...
@@ -53,7 +53,7 @@ class MrCreosote:
return
if
self
.
client
==
None
:
self
.
client
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
self
.
client
.
bind
(
''
,
0
)
self
.
client
.
bind
(
(
''
,
0
)
)
self
.
client
.
sendto
(
msg
,
(
self
.
host
,
self
.
port
))
if
__name__
==
'__main__'
:
...
...
pcgi/pcgi_publisher.py
View file @
a461b5ef
...
...
@@ -192,7 +192,7 @@ class PCGIPublisher:
self
.
hostname
=
socket
.
gethostname
()
try
:
self
.
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
self
.
sock
.
bind
(
self
.
hostname
,
self
.
port
)
self
.
sock
.
bind
(
(
self
.
hostname
,
self
.
port
)
)
except
socket
.
error
:
return
self
.
fatalError
(
"error binding to socket: %s"
%
self
.
socketFile
)
try
:
...
...
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