diff options
author | Thorsten Kukuk <kukuk@suse.de> | 2015-08-24 10:39:13 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-08-28 09:08:19 -0400 |
commit | b2c9430f46c4ac848957fb8adaac176a3f6ac03f (patch) | |
tree | 1ec5caf4057960f45df755459b563a73664be506 /configure.ac | |
parent | 1c77f7a869bdea2a34799d774460d1f9983d45f0 (diff) | |
download | ti-rpc-b2c9430f46c4ac848957fb8adaac176a3f6ac03f.tar.gz |
Use poll() instead of select() in svc_run()
TI-RPC is using select() in svc_run(), while glibc and Solaris
are using poll(). This has two drawbacks: poll() is much more efficient
then select(), and with select() we are limited to 1024 open
filehandles.
And applications replacing svc_run on Linux don't work, since they
expect
svc_pollfd and svc_max_pollfd.
Attached patch changes this. It's full backward compatible, API and ABI,
so e.g. current rpcbind will continue to work and compile. The only
problem could arrive, that we can have more than 1024 open filehandles
and applications ignoring higher ones.
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions