Always use the non-blocking portion of libssh2. This changes libpwmd
commit58b0bb00e40e326f9b0391f4b62394aa85a057ff
authorBen Kibbey <bjk@luxsci.net>
Sat, 8 Aug 2009 18:48:16 +0000 (8 14:48 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sat, 8 Aug 2009 18:48:16 +0000 (8 14:48 -0400)
treed31d6bcf6d0103cfa4f01dd0b5debd7610196e17
parent75941828d90a62d17bdac17ad66fd2d286720403
Always use the non-blocking portion of libssh2. This changes libpwmd
blocking functions that have a non-blocking counterpart to wrap the
non-blocking functions. These changes are needed for commands that use an
INQUIRE to send data to the server and for asynchronous open and save.
Otherwise select()ing on the socket when only SSH protocol data needs to
be read would block after libssh2 has parsed it's protocol data by
getting stuck in the recv(). This lets EAGAIN get handled properly in
libpwmd.
assuan/assuan-buffer.c
assuan/assuan-client.c
src/libpwmd.c
src/ssh.c