[Libssh] Server socket blocking
Matt Lawson
lawson08 at yahoo.com
Fri Apr 18 21:36:24 CEST 2008
Howdy,
I've stumbled across a possible bug with the 'server'
type sockets. ssh_bind_set_blocking (in server.c)
will set a flag variable, but it doesn't actually
apply the F_SETFL to the ssh_bind->bindfd file
descriptor as I would have expected. The result is
that ssh_bind_accept() will always behave blocking (as
far as I can tell).
Now normally I wouldn't call the ssh_bind_accept()
until I had a select() indication that something was
there; in this case I stumbled on it by accident (bug
in my application). But, if it were to be called
accidentally I wouldn't want it to block.
- matt
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the Libssh
mailing list