Re: tmda-ofmipd: Internal support for SSL via tlslite package
[email protected] (Jason R. Mastaler) Fri, 02 Mar 2007 15:23:02 -0700
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] (Jason R. Mastaler) writes: >> Just wondering if there's a Python issue with 64-bit or something, >> or though that wouldn't explain the variability of the >> issue. Perhaps it's something to do with the multi-CPU aspect, and >> race conditions. I'll try testing ofmipd on a Linux machine at work, >> which has dual dual-core x86. > > I also have a single-cpu PPC/G5 iMac I can test with when I get more > time later today. Thunderbird works with --ssl as it did before, but Mail.app still does not, with any Python version, and with pycrypto installed: nadja:~/svn/tmda/trunk jasonrm$ python2.5 bin/tmda-ofmipd -f -d -p localhost:8025 --ssl --ssl-cert=~/.tmda/localhost.pem --ssl-key=~/.tmda/localhost.pem tmda-ofmipd started at Fri, 02 Mar 2007 15:20:23 -0700 Listening on localhost:8025 TlsRecordLayer.__init__: Set self.closed at startup Incoming connection from: ('127.0.0.1', 52276) Incoming connection to: ('127.0.0.1', 8025) TlsRecordLayer._shutdown: Set self.closed error: uncaptured python exception, closing channel <__main__.SMTPServer listening localhost:8025 at 0x1429968> (<type 'exceptions.AssertionError'>: [/sw/lib/python2.5/asyncore.py|read|68] [/sw/lib/python2.5/asyncore.py|handle_read_event|384] [bin/tmda-ofmipd|handle_accept|1370] [bin/tmda-ofmipd|__init__|737] [bin/tmda-ofmipd|signon|762] [bin/tmda-ofmipd|push|767] [/sw/lib/python2.5/asynchat.py|push|160] [/sw/lib/python2.5/asynchat.py|initiate_send|219] [bin/tmda-ofmipd|send|502] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|setWriteOp|229] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|_checkAssert|62]) TLSRecordLayer.writeAsync: Raise: Closed TLSRecordLayer.writeAsync: Exception: Traceback (most recent call last): File "/sw/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py", line 272, in writeAsync raise ValueError() ValueError TlsRecordLayer._shutdown: Set self.closed error: uncaptured python exception, closing channel <__main__.SMTPSession connected 127.0.0.1:52276 at 0x1429ad0> (<type 'exceptions.ValueError'>: [/sw/lib/python2.5/asyncore.py|write|76] [/sw/lib/python2.5/asyncore.py|handle_write_event|397] [bin/tmda-ofmipd|handle_write|465] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|inWriteEvent|150] [bin/tmda-ofmipd|outWriteEvent|488] [/sw/lib/python2.5/asynchat.py|handle_write|153] [/sw/lib/python2.5/asynchat.py|initiate_send|219] [bin/tmda-ofmipd|send|502] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|setWriteOp|231] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|_doWriteOp|181] [/sw/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py|writeAsync|272])