Ticket #530 (defect)
Opened 3 years ago
Last modified 3 years ago
CherryPyWSGIServer does not always initalize self.socket
Status: closed (fixed)
| Reported by: | java_lmp@yahoo.com | Assigned to: | rdelon |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2-rc1 |
| Component: | CherryPy code | Keywords: | |
| Cc: |
Using CherryPy 2.2.1 on HPUX 11 I run into an exception like "WSGIserver does not have an attribute socket".
The problem is on method start(); line 287 could add self.socket=None (or it could be initalized somewhere else) The exception is produced in:
try:
self.socket = socket.socket(af, socktype, proto) self.socket.setsockopt(socket.SOL_SOCKET,
socket.SO_REUSEADDR, 1)
self.socket.bind(self.bind_addr)
except socket.error, msg:
if self.socket:
If the exception is raised when the socket is created, self.socket does not exist, so a further exception is raised
Change History
06/01/06 10:50:22: Modified by fumanchu
- status changed from new to closed.
- resolution set to fixed.


Fixed in [1113].