RFR [9] 8035897 : FD_SETSIZE should be set on macosx
Christos Zoulas
christos at zoulas.com
Mon Aug 18 16:08:13 UTC 2014
On Aug 18, 5:42pm, fweimer at redhat.com (Florian Weimer) wrote:
-- Subject: Re: RFR [9] 8035897 : FD_SETSIZE should be set on macosx
| On 08/18/2014 05:36 PM, Christos Zoulas wrote:
| > On Aug 18, 5:10pm, fweimer at redhat.com (Florian Weimer) wrote:
| > -- Subject: Re: RFR [9] 8035897 : FD_SETSIZE should be set on macosx
| >
| > | On 02/28/2014 03:40 PM, Chris Hegarty wrote:
| > | > Either:
| > | > 1) FD_SETSIZE needs to be set to a larger value, but what value, the
| > | > kernel limit, or other? This is wasteful for most typical apps that
| > | > don't use large numbers of file descriptors. Or,
| > | > 2) If fd is greater than 1024, then an appropriate amount of memory
| > | > could be allocated and cast to an fd_set. The FD_SET macro will
| > | > write past FD_SETSIZE.
| > |
| > | 3) use poll
| > |
| > | Why do we have to use select here?
| >
| > Because poll is still broken on UDP sockets.
|
| Ugh. Can you provide details, such as affected platforms? Thanks.
Just macos/x. Empty UDP packets don't make poll fire.
https://bugs.openjdk.java.net/browse/JDK-7131399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
christos
More information about the net-dev
mailing list