470,626 Members | 2,139 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,626 developers. It's quick & easy.

TypeError: ssl() argument 1 must be _socket.socket,not _socketobject

I am getting this error from python 2.3.5 when making secure socket
connections from my mod_python based application. It is very odd
because we cannot replicate this in the development environment, only in
production on a cluster of 2 debian boxes with Apache2 MPM Worker w/ Mod
Python 3.13.

Does anybody have any ideas as to what could be causing this error?

Here is the full traceback:

Traceback: File
line 95, in _
File "/usr/lib/python2.3/httplib.py", line 715, in endheaders
File "/usr/lib/python2.3/httplib.py", line 600, in _send_output
File "/usr/lib/python2.3/httplib.py", line 567, in send
File "/usr/lib/python2.3/httplib.py", line 988, in connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
File "/usr/lib/python2.3/socket.py", line 73, in ssl
return _realssl(sock, keyfile, certfile)
TypeError: ssl() argument 1 must be _socket.socket, not _socketobject

The thing is that if we restart the web server, it works fine for about
20 minutes after which we start getting these errors.

Any help would be appreciated.


Jul 19 '05 #1
0 1513

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jane Austine | last post: by
2 posts views Thread by Stephen Williams | last post: by
reply views Thread by christian_stengel | last post: by
22 posts views Thread by Bloke | last post: by
4 posts views Thread by schwehr | last post: by
2 posts views Thread by campos | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.