AttributeError: 'SSLSocket' object has no attribute 'producer_fifo'

VYAS ASHISH M-NTB837 ashish.vyas at motorola.com
Fri Oct 23 08:27:40 CEST 2009


Tried using asyncore.dispatcher_with_send in place of
asynchat.async_chat and after a few request-responses, I get this:
 
Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Python31\lib\threading.py", line 509, in _bootstrap_inner
    self.run()
  File "C:\Python31\lib\threading.py", line 462, in run
    self._target(*self._args, **self._kwargs)
  File "D:\XPress_v1.3\XPress\Model.py", line 3328, in run
    asyncore.loop()
  File "C:\Python31\lib\asyncore.py", line 206, in loop
    poll_fun(timeout, map)
  File "C:\Python31\lib\asyncore.py", line 124, in poll
    is_w = obj.writable()
  File "C:\Python31\lib\asyncore.py", line 516, in writable
    return (not self.connected) or len(self.out_buffer)
  File "C:\Python31\lib\asyncore.py", line 399, in __getattr__
    return getattr(self.socket, attr)
AttributeError: 'SSLSocket' object has no attribute 'out_buffer'
 
Someone please throw some light on this!
 
Ashish

________________________________

From: VYAS ASHISH M-NTB837 
Sent: Friday, October 23, 2009 11:35 AM
To: python-list at python.org
Subject: AttributeError: 'SSLSocket' object has no attribute
'producer_fifo'


I am getting the following error when I try to run my program to post
and receive xmls to an https server.
 
 
Traceback (most recent call last):
  File "C:\Python31\lib\threading.py", line 509, in _bootstrap_inner
    self.run()
  File "C:\Python31\lib\threading.py", line 462, in run
    self._target(*self._args, **self._kwargs)
  File "D:\XPress_v1.3\XPress\Model.py", line 3328, in run
    asyncore.loop()
  File "C:\Python31\lib\asyncore.py", line 206, in loop
    poll_fun(timeout, map)
  File "C:\Python31\lib\asyncore.py", line 124, in poll
    is_w = obj.writable()
  File "C:\Python31\lib\asynchat.py", line 222, in writable
    return self.producer_fifo or (not self.connected)
  File "C:\Python31\lib\asyncore.py", line 398, in __getattr__
    return getattr(self.socket, attr)
AttributeError: 'SSLSocket' object has no attribute 'producer_fifo'

Does any one know what is wrong here?
 
Regards,
Ashish 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091023/225a0593/attachment.html>


More information about the Python-list mailing list