mac osx socket.accept return None instead of ""
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB |
Fix Released
|
High
|
Christian Theune | ||
3.10 |
Fix Released
|
Undecided
|
Unassigned | ||
3.6 |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
ZODB 3.6.0 (should apply to trunk as well)
on OS X version:
hypermac:~ paolo$ uname -a
Darwin hypermac.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-
python installed from mac ports:
Python 2.4.4 (#1, Jun 30 2007, 16:45:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
unix socket accept return addr == None instead of addr == "".
--- StorageServer.
+++ StorageServer.py 2007-08-27 19:18:31.000000000 +0200
@@ -113,6 +113,8 @@
addr = conn.addr
if isinstance(addr, type("")):
label = addr
+ elif addr is None:
+ label = ''
else:
host, port = addr
label = str(host) + ":" + str(port)
Related branches
Changed in zodb: | |
status: | Incomplete → New |
Changed in zodb: | |
importance: | Medium → High |
Changed in python: | |
assignee: | nobody → Python Development (python-dev) |
Changed in zodb: | |
milestone: | none → 3.9.6 |
status: | Incomplete → Fix Committed |
milestone: | 3.9.6 → 3.10.0a2 |
milestone: | 3.10.0a2 → 3.9.6 |
Changed in zodb: | |
status: | Fix Committed → Fix Released |
affects: | python → obsolete-junk |
no longer affects: | obsolete-junk |
What error happens in your case? Can you maybe provide a test case that shows this?