Subject: [patch] use poll when available on blocking API

[patch] use poll when available on blocking API

From: Paul Querna <pquerna_at_apache.org>
Date: Tue, 23 Mar 2010 17:52:10 +0000

Hello,

We use libssh2 as part of Reconnoiter:
<https://labs.omniti.com/trac/reconnoiter>

Recently, we kept seeing libssh2 crashing once we passed a certain
level of concurrency inside noitd, and eventually we traced it down to
libssh2 using select, with sockets > FD_SETSIZE.

The attached patch uses poll inside _libssh2_wait_socket, and fixes
the issue for us.

Ideally Reconnoiter will switch to the async API methods, but fixing
this was quicker than rewriting the noitd module.

Thanks,

Paul

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2010-03-23