www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: internal poll doesn't handle orderly shut down (read/recv returns 0 bytes) = 100% CPU

Re: internal poll doesn't handle orderly shut down (read/recv returns 0 bytes) = 100% CPU

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Oct 2011 22:41:08 +0200 (CEST)

On Mon, 3 Oct 2011, Pavel Strashkin wrote:

> file: src/session.c, function: libssh2_poll, with defined HAVE_POLL (it uses
> poll instead of select)

The man page says: "This function is deprecated"

Due to this, I've not bothered to fix it in the past but if someone does
provide a patch that improves it I guess it could still be worthwhile to apply
it as long as the function remains...

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-10-03

the libssh2 team