-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Unclear exactly why this was added, but it seems to always take effect in unix micropython. Can we live without it?
Lines 274 to 294 in 024de05
| def _connect_poll_fix(self): | |
| import select | |
| poller = select.poll() | |
| poller.register(self._sock, select.POLLIN | select.POLLOUT) | |
| try: | |
| self._sock.connect(self._addr) | |
| except OSError as e: | |
| if e.errno != EINPROGRESS: | |
| raise e | |
| self._logger.debug("- poll_fix: polling sock for connect open") | |
| res = poller.poll(self._sock_connect_timeout) | |
| # self._logger.info("c2u", res) | |
| poller.unregister(self._sock) | |
| # self._logger.info("c2ud", res) | |
| if not res: | |
| # self._logger.info("c2e", res) | |
| self._sock.close() | |
| raise OSError("Socket Connect Timeout") |
Metadata
Metadata
Assignees
Labels
No labels