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 -- http://mail.python.org/mailman/listinfo/python-list
RE: AttributeError: 'SSLSocket' object has no attribute 'producer_fifo'
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@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 -- http://mail.python.org/mailman/listinfo/python-list
Re: AttributeError: 'SSLSocket' object has no attribute 'producer_fifo'
En Fri, 23 Oct 2009 03:27:40 -0300, VYAS ASHISH M-NTB837 ashish.v...@motorola.com escribió: 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! How do you manage asyncore's map? It should contain dispatcher objects -- looks like you've got objects of another type there. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list