aboutsummaryrefslogtreecommitdiff
path: root/src/poll.c
AgeCommit message (Collapse)AuthorFilesLines
2014-01-07src: Update my mail address.Andreas Schneider1-1/+1
2014-01-07update copyright informationAris Adamantiadis1-2/+2
2014-01-06poll: fix poll_handles ownershipsAris Adamantiadis1-5/+27
2013-12-22poll: Correctly free ssh_event_fd_wrapper.Andreas Schneider1-3/+9
This is allocated by ssh_event_add_fd.
2013-11-13poll: Fix realloc in ssh_poll_ctx_resize().Andreas Schneider1-2/+6
2013-10-31poll: fix leak in ssh_poll_ctx_freeJon Simons1-1/+5
Fix a memory leak in 'ssh_poll_ctx_free': issue 'ssh_poll_free' to remove the poll handle from its context and free it. BUG: https://red.libssh.org/issues/128 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-23cmake: Check for unistd.h.Andreas Schneider1-1/+4
2013-07-13events: don't poll handles busy handling callbacksAris Adamantiadis1-3/+8
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-26poll: return error on poll() when pollset is emptyAris Adamantiadis1-1/+1
2012-10-12poll: Fix sizeof in ssh_poll_ctx_resize().Andreas Schneider1-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.
2011-09-18priv: Remove crypto.h and add correct includes to src files.Andreas Schneider1-0/+1
2011-09-02poll: resolve use-after-free + inconsistent callbacks callAris Adamantiadis1-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.
2011-08-23poll: Just make the code a bit more readable.Andreas Schneider1-4/+6
Maybe this fixes a cppcheck false positive. (cherry picked from commit 45c1a23769b63e72e895158bcab83aad31d483dd)
2011-08-06channels: Fix checking for fatal errors.rofl0r1-1/+6
We need this that we don't end up in and infinite poll loop.
2011-05-24Introduced ssh_timeout_elapsed functionsAris Adamantiadis1-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.
2011-05-17poll: Removed WSAPoll() support.Oliver Stöneberg1-43/+0
It was causing too many issues and the poll emulation is quite stable.
2011-05-17connect: Set timeout on connectOliver Stöneberg1-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.
2011-05-02[event] don't use sessions in event anymoremilo1-14/+0
(cherry picked from commit 89d0fdbbde4cf48e783a8ee7c5907c51a83e207b)
2011-05-02[poll] avoid infinite loop in ssh_poll_ctx_free()milo1-1/+6
(cherry picked from commit eace59d3eaad413fd846d1c8b4c926285f6cd5ab)
2011-04-15poll: Fix poll input events.Andreas Schneider1-2/+2
bug#38
2011-04-14Fix a memleak on event poll contextsmilo1-0/+2
2011-04-14Bug fix in ssh_poll_ctx_remove()milo1-0/+4
2011-02-20poll: Added a function to poll the events.milo1-0/+38
2011-02-20poll: Added function to remove fd from the event context.milo1-0/+30
2011-02-20poll: Added function to add an fd to the events.milo1-0/+64
2011-02-20poll: Added function to remove session from event loop.milo1-0/+47
2011-02-20poll: Added function to add session to an event.milo1-0/+44
2011-02-20poll: Added a function to free an event.milo1-0/+23
2011-02-20poll: Started to add a poll based event loop.milo1-0/+49
2011-02-10Fix NULL pointer checks in pollmilo1-8/+7
2011-02-09poll: Use WSAPoll() on Windows.Andreas Schneider1-1/+3
2011-02-09Revert "poll: Remove obsolete win_poll functions."Andreas Schneider1-0/+8
This reverts commit c950ed3b4c2c9a84ae9e94ffc81eb815249f81cb.
2011-02-09poll: Remove obsolete win_poll functions.Andreas Schneider1-8/+0
Thanks for the hint Milo ;)
2011-01-03poll: Ensure that the poll handle and ctx is zeroed.Andreas Schneider1-19/+24
2011-01-02poll: Fixed a build warning on Windows.Andreas Schneider1-1/+1
2010-10-12Removed the global poll ctx in fav. of /session ctxAris Adamantiadis1-29/+14
2010-09-06misc: Rename libssh/ to src/Andreas Schneider1-0/+692