summaryrefslogtreecommitdiffstats
path: root/src/poll.c
Commit message (Collapse)AuthorAgeFilesLines
* poll: return error on poll() when pollset is emptyAris Adamantiadis2013-02-271-1/+1
| | | | (cherry picked from commit 222a0d78ca5c272ea109e847d62cf12674dd875f)
* poll: resolve use-after-free + inconsistent callbacks callAris Adamantiadis2011-09-021-18/+3
| | | | | | | This code was weird in the first place. I suspect my change will break something else (probably the appcode that needed it). ssh_poll_ctx_free is not a good place to send exception callbacks imho. (cherry picked from commit b5351f2809140921076ef54cc6092b543b5199d2)
* channels: Fix checking for fatal errors.rofl0r2011-08-071-1/+6
| | | | | | | | | We need this that we don't end up in and infinite poll loop. (cherry picked from commit 563fbe4de8ee090b40b50415a86f9a3da16f46b0) Conflicts: src/poll.c
* Introduced ssh_timeout_elapsed functionsAris Adamantiadis2011-05-251-1/+4
| | | | | | | | Functions to mesure elapsed time before and after a serie of calls. Introduces a dependancy to clock_gettime() and librt, hope this doesn't break anything. Porting to gettimeofday() should not be too hard. (cherry picked from commit 59f7647cd97c62ab7a26725e5a166dcb54b27bc6)
* connect: Set timeout on connectOliver Stöneberg2011-05-171-3/+1
| | | | | | This also fixes error handling in ssh_poll_ctx_dopoll() and ssh_handle_packets(), so it won't loop forever on an actual timeout. (cherry picked from commit 671a9827394714cfc90d75c8a8fb2ccd86f80abf)
* poll: Removed WSAPoll() support.Oliver Stöneberg2011-05-171-43/+0
| | | | | It was causing too many issues and the poll emulation is quite stable. (cherry picked from commit f4f4ce37f058748489b195e976b577465864e914)
* [poll] avoid infinite loop in ssh_poll_ctx_free()milo2011-05-021-2/+7
| | | | (cherry picked from commit 809254160308289fdcddf8a5eabad0c85a35bce7)
* poll: Fix poll input events.Andreas Schneider2011-04-151-1/+2
| | | | bug#38
* poll: Use WSAPoll() on Windows.Andreas Schneider2011-02-091-1/+3
|
* Revert "poll: Remove obsolete win_poll functions."Andreas Schneider2011-02-091-0/+8
| | | | This reverts commit c950ed3b4c2c9a84ae9e94ffc81eb815249f81cb.
* poll: Remove obsolete win_poll functions.Andreas Schneider2011-02-091-8/+0
| | | | Thanks for the hint Milo ;)
* poll: Ensure that the poll handle and ctx is zeroed.Andreas Schneider2011-01-031-19/+24
|
* poll: Fixed a build warning on Windows.Andreas Schneider2011-01-021-1/+1
|
* Removed the global poll ctx in fav. of /session ctxAris Adamantiadis2010-10-121-29/+14
|
* misc: Rename libssh/ to src/Andreas Schneider2010-09-061-0/+692