summaryrefslogtreecommitdiffstats
path: root/src/poll.c
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Check for unistd.h.Andreas Schneider2013-07-231-1/+4
|
* events: don't poll handles busy handling callbacksAris Adamantiadis2013-07-131-3/+8
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* poll: return error on poll() when pollset is emptyAris Adamantiadis2013-02-261-1/+1
|
* poll: Fix sizeof in ssh_poll_ctx_resize().Andreas Schneider2012-10-121-2/+2
| | | | | | | sizeof(ssh_poll_handle *) is to be equal to sizeof(ssh_poll_handle), but this is not a portable assumption. Found by Coverity.
* priv: Remove crypto.h and add correct includes to src files.Andreas Schneider2011-09-181-0/+1
|
* 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.
* poll: Just make the code a bit more readable.Andreas Schneider2011-08-231-4/+6
| | | | | Maybe this fixes a cppcheck false positive. (cherry picked from commit 45c1a23769b63e72e895158bcab83aad31d483dd)
* channels: Fix checking for fatal errors.rofl0r2011-08-061-1/+6
| | | | We need this that we don't end up in and infinite poll loop.
* Introduced ssh_timeout_elapsed functionsAris Adamantiadis2011-05-241-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.
* poll: Removed WSAPoll() support.Oliver Stöneberg2011-05-171-43/+0
| | | | It was causing too many issues and the poll emulation is quite stable.
* 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.
* [event] don't use sessions in event anymoremilo2011-05-021-14/+0
| | | | (cherry picked from commit 89d0fdbbde4cf48e783a8ee7c5907c51a83e207b)
* [poll] avoid infinite loop in ssh_poll_ctx_free()milo2011-05-021-1/+6
| | | | (cherry picked from commit eace59d3eaad413fd846d1c8b4c926285f6cd5ab)
* poll: Fix poll input events.Andreas Schneider2011-04-151-2/+2
| | | | bug#38
* Fix a memleak on event poll contextsmilo2011-04-141-0/+2
|
* Bug fix in ssh_poll_ctx_remove()milo2011-04-141-0/+4
|
* poll: Added a function to poll the events.milo2011-02-201-0/+38
|
* poll: Added function to remove fd from the event context.milo2011-02-201-0/+30
|
* poll: Added function to add an fd to the events.milo2011-02-201-0/+64
|
* poll: Added function to remove session from event loop.milo2011-02-201-0/+47
|
* poll: Added function to add session to an event.milo2011-02-201-0/+44
|
* poll: Added a function to free an event.milo2011-02-201-0/+23
|
* poll: Started to add a poll based event loop.milo2011-02-201-0/+49
|
* Fix NULL pointer checks in pollmilo2011-02-101-8/+7
|
* 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