[PEAK] Socket existence probleme (`v.errno` instead of `v`)

Alain Poirier alain.poirier at net-ng.com
Thu Apr 21 12:40:00 EDT 2005


Hi,

Playing with FastCGI (and lighttpd), I found a problem in the
test for the existence of the unix socket.

I needed to make this patch :

--- /usr/lib/python2.4/site-packages/peak/net/sockets.py 2005-04-19 
13:17:26.000000000 +0200
+++ /home/apr/projects/peak/dev/src/peak/net/sockets.py 2004-07-06 
01:41:50.000000000 +0200
@@ -53,7 +53,7 @@
                     try:
                         os.unlink(sa)   # remove the existing unix socket
                     except OSError,v:
-                        if v.errno<>errno.ENOENT: # ignore if socket 
doesn't exist
+                        if v<>errno.ENOENT: # ignore if socket doesn't 
exist
                             raise
                 s.bind(sa)
                 s.listen(5) # should will be made configurable




More information about the PEAK mailing list