Title: Add support for timeout. Change from select syscall to poll by nveloso · Pull Request #210 · python-xlib/python-xlib · GitHub
Open Graph Title: Add support for timeout. Change from select syscall to poll by nveloso · Pull Request #210 · python-xlib/python-xlib
X Title: Add support for timeout. Change from select syscall to poll by nveloso · Pull Request #210 · python-xlib/python-xlib
Description: Hi! In this PR I added support for specifying the timeout used in sockets via an argument. I changed the use of select syscall to poll syscall. Select syscall has a known limitation: WARNING: select() can monitor only file descriptors numbers that are less than FD_SETSIZE (1024)—an unreasonably low limit for many modern applications—and this limitation will not change. All modern applications should instead use poll(2) or epoll(7), which do not suffer this limitation. Taken from https://man7.org/linux/man-pages/man2/select.2.html I also make the BaseDisplay class public because it can be useful to connect to a X11 server without making several requests to get all the extensions available. I also added a check in parse_connection_setup method that checks if the response has a valid status. In the protocol specification page 11 and 114 you can see all the available status (0, 1 or 2). I ran the tests with python3 runtests.py and all passed. ---------------------------------------------------------------------- XML: /com.docker.devenvironments.code/nosetests.xml ---------------------------------------------------------------------- Ran 524 tests in 12.184s OK (SKIP=142) I hope you can merge my changes. Any question feel free to ask.
Open Graph Description: Hi! In this PR I added support for specifying the timeout used in sockets via an argument. I changed the use of select syscall to poll syscall. Select syscall has a known limitation: WARNING: sele...
X Description: Hi! In this PR I added support for specifying the timeout used in sockets via an argument. I changed the use of select syscall to poll syscall. Select syscall has a known limitation: WARNING: sele...
Opengraph URL: https://github.com/python-xlib/python-xlib/pull/210
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:b0da01e4-3e65-be4f-5853-9bf8085a0873 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A33E:9124A:25F18C3:3179071:696B594A |
| html-safe-nonce | ff717c5af21f04a1978b0acfa97a90ad8af7ff66d16b79883b2d18433a2a748f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzNFOjkxMjRBOjI1RjE4QzM6MzE3OTA3MTo2OTZCNTk0QSIsInZpc2l0b3JfaWQiOiI4OTc1NDk3MzU1NTczNTQ5Mzg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 12da484277c11249c3c1518e618c4320fe21ad4e2aac026272eb865d6a72bfdb |
| hovercard-subject-tag | pull_request:760463022 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-xlib/python-xlib/pull/210/checks |
| twitter:image | https://avatars.githubusercontent.com/u/24777851?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/24777851?s=400&v=4 |
| og:image:alt | Hi! In this PR I added support for specifying the timeout used in sockets via an argument. I changed the use of select syscall to poll syscall. Select syscall has a known limitation: WARNING: sele... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-xlib/python-xlib git https://github.com/python-xlib/python-xlib.git |
| octolytics-dimension-user_id | 16151530 |
| octolytics-dimension-user_login | python-xlib |
| octolytics-dimension-repository_id | 47391866 |
| octolytics-dimension-repository_nwo | python-xlib/python-xlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47391866 |
| octolytics-dimension-repository_network_root_nwo | python-xlib/python-xlib |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width