[issue36094] When using an SMTP SSL connection,, get ValueError.
Alice Bevan-McGregor added the comment: Howdy! One of my projects, Marrow Mailer (formerly TurboMail) has received a bit of a flood of reports and erroneous pull requests attempting to correct this bug in the invocation of smtplib by Mailer. https://github.com/marrow/mailer/issues/83 is our own tracking issue, with https://github.com/marrow/mailer/pull/91 as the most "successful" pull request with more detailed (contextualized) traceback, comparison, and links to official documentation. (Also, yay, worked around the problem here by recovering my "native" issue tracker account rather than trying to sign in with GitHub.) This appears to be a clear regression. The particular reason why I'm unwilling to accept these patches to Mailer is that passing a hostname at SMTP_SSL instantiation time will cause the connection to be initiated from within __init__ itself, prior to any ability to set the diagnostic logging level, which is boo, hiss. Initializers actually doing things is un-good, beyond diagnostic logging not being an optional keyword argument. (Instantiation != procedural invocation.) -- nosy: +amcgregor ___ Python tracker <https://bugs.python.org/issue36094> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8771] Socket freezing under load issue on Mac.
Alice Bevan-McGregor al...@gothcandy.com added the comment: Agreed; I'm now certain it's a local tuning issue. My first attempt to alter the file descriptor limits for local testing resulted in catastrophic system failure, though, so I have no clue as to the correct method to alter the TIME_WAIT time. I will continue to investigate, thank you for the lead. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8771] Socket freezing under load issue on Mac.
New submission from Alice Bevan-McGregor al...@gothcandy.com: Using the wsgiref simple HTTP server or any other capable of 2000 requests/sec. demonstrates an issue with Macintosh sockets. Mac OS X Version: 10.6.3 (Build 10D573) Python Version: 2.6.1 (32-bit) The minimal application needed to demonstrate the problem is: import sys, cStringIO from wsgiref.simple_server import make_server sys.stderr = cStringIO.StringIO() # disable request logging def app(environ, start_response): start_response(200 OK, [('Content-Type', 'text/plain')]) return ['Hello world!\n'] httpd = make_server('', 8080, app) httpd.serve_forever() Then hammer the server using Apache Bench: ab -n 2 -c 5 http://127.0.0.1:8080/ At almost exactly the 16000 request mark socket connections begin to time out. Sockets are then freed up at the rate of about 40/second (on my box). Killing the ab run when it freezes then immediately re-trying (and cancelling after a few seconds) will show this rate. Time must pass for some connection 'pool' to free the connections before you can do another 16000 requests. This problem does not appear on the following setup: Operating System: Gentoo Linux Python Version: 2.6.4 (32-bit) -- components: Library (Lib) messages: 106117 nosy: amcgregor priority: normal severity: normal status: open title: Socket freezing under load issue on Mac. type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8771] Socket freezing under load issue on Mac.
Alice Bevan-McGregor al...@gothcandy.com added the comment: I can confirm this issue also effecting 2.5.4 on my Mac. -- versions: +Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8771] Socket freezing under load issue on Mac.
Alice Bevan-McGregor al...@gothcandy.com added the comment: Unfortunately, unless I can get instructions on how to properly diagnose socket libraries, I've exhausted my ability to debug this. I used to be a C programmer, but that was 12 years ago. I'm hoping to a) confirm the problem exists on Mac (not just my computer), and b) get someone familiar with Python's socket implementation and socket programming in general to figure out what's actually going on here. I also don't have access to Apple's radar bug tracker to check there. :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com