path: root/src/connect.c
AgeCommit message (Collapse)AuthorFilesLines
2018-12-07connect: Fix size type for i an j in ssh_select()Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-24connect: Zero the origfds structAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-25connect: Fix build warning on WindowsAndreas Schneider1-1/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-28Remove vim modelines from all filesAndreas Schneider1-2/+0
If you want modelines use my vim plugin: https://github.com/cryptomilk/git-modeline.vim git config --add vim.modeline "ts=4 sw=4 et" Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-03-21Add a NODELAY optionAlberto Aguirre1-0/+19
Add a new option SSH_OPTIONS_NODELAY to enable or disable the Nagle Algorithm (TCP_NODELAY) on the session socket. Improved performance can be achieved for some applications like sftp servers by enabling SSH_OPTIONS_NODELAY as typically, the next request won't arrive until the server replies, which are typically small writes. Signed-off-by: Alberto Aguirre <albaguirre@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-10-22Remove extra newlines from log/error messagesPino Toscano1-3/+3
Signed-off-by: Pino Toscano <ptoscano@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-14connect: Fix a memory leak.Andreas Schneider1-0/+1
CID: #1238618 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-01-06connect: Fix mingw build.Andreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-25connect: Check that errno is 0 to fix Windows build.Andreas Schneider1-1/+2
Thanks to Viktor Butskih. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-10-15connect: Do not fail if the connect is in progress.Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-10-12Check return code of connect(2).William Orr1-1/+9
Signed-off-by: William Orr <will@worrbase.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-01-23doc: Document the unit for ssh_select() timeout.Andreas Schneider1-1/+1
BUG: https://red.libssh.org/issues/143
2014-01-07update copyright informationAris Adamantiadis1-1/+1
2013-10-31connect: fix memory leak in ssh_selectJon Simons1-2/+9
Balance 'ssh_event_add_fd' with 'ssh_event_remove_fd' in 'ssh_select'. BUG: https://red.libssh.org/issues/128 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-22connect: Fix a build warning on Windows.Andreas Schneider1-7/+12
2013-07-14src: Remove enter_function() and leave_function().Andreas Schneider1-17/+7
2013-07-14src: Migrate to SSH_LOG.Andreas Schneider1-10/+10
2013-06-18connect: Use the correct close function.Andreas Schneider1-1/+1
2013-06-18connect: Correctly fail in ssh_connect_host_nonblocking().Andreas Schneider1-0/+2
2013-06-17socket: Check if socket (non)blocking is working.Andreas Schneider1-3/+22
2013-06-17connect: Check return value of getsockopt().Andreas Schneider1-3/+4
2012-10-12connect: Don't leak the addressinfo on error.Andreas Schneider1-0/+1
2012-10-12connect: Don't leak the file descriptor on error.Andreas Schneider1-0/+1
Found by Coverity.
2012-07-17connect: Fix a build warning.Andreas Schneider1-1/+1
2011-09-18socket: Move socket function to right location.Andreas Schneider1-23/+3
2011-09-02ssh_select converted to ssh_event, and bugfix to ssh_channel_selectAris Adamantiadis1-110/+57
2011-02-12connect: Use ssh_is_ipaddr instead of regex.Andreas Schneider1-58/+8
2011-02-12ssh_connect_host_nonblocking returns SSH_EINTR, not E_INTR, so update ↵Bernhard R. Link1-1/+1
documentation Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2011-01-22Fix problem with ssh_connect w/ timeout &fd > 1024Aris Adamantiadis1-13/+16
Convert that code to ssh_poll (cherry picked from commit b1a65dd25f124bd7d78714b016e8c0e05fc7acd2)
2010-12-29connect: Added and improved regex for ip detection.Andreas Schneider1-1/+1
Thanks to Norbert Kiesel, rlo#14.
2010-12-29connect: Added missing $ in IPREGEX.Andreas Schneider1-1/+1
Fixes rlo#14.
2010-12-28connect: Use a better IP regex.Andreas Schneider1-1/+3
2010-09-26Fixed outgoing flow control + writes behavioursAris Adamantiadis1-1/+1
2010-09-06misc: Rename libssh/ to src/Andreas Schneider1-0/+600