Bug 1318806 - Connections fail when process open file handles > 1024
Summary: Connections fail when process open file handles > 1024
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libc-client
Version: 6.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-17 21:25 UTC by Aaron Meriwether
Modified: 2017-10-04 10:31 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-04 10:31:14 UTC
Target Upstream Version:


Attachments (Terms of Use)
The Debian patch adjusted for the RedHat libc-client-2007e-11 source (7.21 KB, patch)
2016-03-17 21:25 UTC, Aaron Meriwether
no flags Details | Diff
Patch to specfile (1.09 KB, patch)
2016-03-18 11:27 UTC, Aaron Meriwether
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 478193 0 None None None 2016-03-17 21:25:00 UTC

Description Aaron Meriwether 2016-03-17 21:25:00 UTC
Created attachment 1137515 [details]
The Debian patch adjusted for the RedHat libc-client-2007e-11 source

When >1024 file handles are open in a process, the IMAP library refuses to create new TCP connections.

In our case it is the asterisk-voicemail package that is encountering issues with this library.

Basically the bus arises because the bit-vector data structure used for select() calls is limited to 1024 bits.  The fix is to move from select() calls to poll() calls.

This was originally discovered when using IMAP from within mod_php because Apache sometimes has a large number of file handles open, but I believe PHP's IMAP implementation has since switched to a different library.


Version-Release number of selected component (if applicable):
2007e-11 and presumably all previous


Discussed in depth on the Debian bug list here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478193


Original patch is here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?filename=uw-imap-poll.diff;att=1;msg=61;bug=478193


An adjusted patch which applies cleanly against the 2007e-11 RPM source is attached.

Comment 2 Joe Orton 2016-03-18 08:48:18 UTC
Thanks for the report.  We're not planning any updates to libc-client at the moment, so if this is an issue for you in production please contact Red Hat support.

Comment 3 Aaron Meriwether 2016-03-18 11:27:20 UTC
Created attachment 1137743 [details]
Patch to specfile


We've patched and rebuilt the current RPM from our end already - it would just be nice to see the patch included in future builds.

For anyone else who comes across this bug report and needs the fix before the next official build from RedHat, I've attached the necessary specfile diff.

Comment 5 Joe Orton 2016-07-28 10:55:35 UTC
Thanks for the patch, Aaron!  I've pushed this to Fedora.

http://pkgs.fedoraproject.org/cgit/rpms/uw-imap.git/diff/?id=6ed065237ac0e86f49eff758abcc34aa948eedc0

Again, we have no current plans to update libc-client in RHEL.  Please raise a ticket through the regular Red Hat support channels to ensure it receives the proper attention and prioritization to assure a timely resolution.

Comment 6 Red Hat Bugzilla Rules Engine 2017-10-04 10:31:14 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.