Commit a810563d authored by Stas Korobeynikov's avatar Stas Korobeynikov Committed by Pavel Vainerman

add sleep on ssh open

parent e4f95acb
......@@ -1910,7 +1910,10 @@ channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset)
if (len < 0 &&
(errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK))
{
usleep(500);
return 1;
}
if (len <= 0) {
if (c->type != SSH_CHANNEL_OPEN) {
debug2("channel %d: not open", c->self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment