diff options
author | fsbs <fsbs@users.noreply.github.com> | 2021-09-13 15:21:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 15:21:50 +0000 |
commit | 556b18f1496ce70373d678f618be472e5ba02adc (patch) | |
tree | 86dd0bc41e44757f52f644d9472fbd0eb8e9d5e0 | |
parent | 23afe62edb66a751604974bef5dad63edd79d3de (diff) | |
download | pycurl-556b18f1496ce70373d678f618be472e5ba02adc.tar.gz |
multi_select docs: fix return value on timeout
-rw-r--r-- | doc/docstrings/multi_select.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/docstrings/multi_select.rst b/doc/docstrings/multi_select.rst index a800412..8849603 100644 --- a/doc/docstrings/multi_select.rst +++ b/doc/docstrings/multi_select.rst @@ -1,4 +1,4 @@ -select([timeout]) -> number of ready file descriptors or -1 on timeout +select([timeout]) -> number of ready file descriptors or 0 on timeout Returns result from doing a select() on the curl multi file descriptor with the given timeout. @@ -18,7 +18,7 @@ Example usage:: if ret != pycurl.E_CALL_MULTI_PERFORM: break while num_handles: ret = m.select(1.0) - if ret == -1: continue + if ret == 0: continue while 1: ret, num_handles = m.perform() if ret != pycurl.E_CALL_MULTI_PERFORM: break |