This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients gvanrossum, josephgordon, kernel0, vstinner, yselivanov
Date 2015-12-22.23:18:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450826327.7.0.197956514376.issue23846@psf.upfronthosting.co.za>
In-reply-to
Content
> Why are you using 20000 threads?

That's a good question.

In any case it looks like self-pipe sock's buffer was overflown because call_soon_threadsafe was called too many times, and loop._read_from_self couldn't empty the buffer promptly.  Then, at some point, _write_to_self failed with an IOError.

It looks like this was fixed for the selector loop, but not for proactor:

selector_events.py:

    def _write_to_self(self):
        csock = self._csock
        if csock is not None:
            try:
                csock.send(b'\0')
            except OSError:
                if self._debug:
                    logger.debug("Fail to write a null byte into the "
                                 "self-pipe socket",
                                 exc_info=True)

proactor_events.py:

    def _write_to_self(self):
        self._csock.send(b'\0')
History
Date User Action Args
2015-12-22 23:18:47yselivanovsetrecipients: + yselivanov, gvanrossum, vstinner, kernel0, josephgordon
2015-12-22 23:18:47yselivanovsetmessageid: <1450826327.7.0.197956514376.issue23846@psf.upfronthosting.co.za>
2015-12-22 23:18:47yselivanovlinkissue23846 messages
2015-12-22 23:18:47yselivanovcreate