Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b105
-
generic
-
os_x
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8034610 | 7u65 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8023403 | 7u60 | Aleksej Efimov | P3 | Closed | Fixed | b01 |
Description
The following sequence can illustrate the problem:
1. Open 1023 files (use FileInputStream())
2. Create socket and try to read from it.
3. Get the following exception:
Exception in thread "main" java.net.SocketException: Invalid argument
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:633)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:604)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
at SelectFdsLimit.main(SelectFdsLimit.java:86)
Attachments
Issue Links
- backported by
-
JDK-8034610 Number of opened files used in select() is limited to 1024 [macosx]
- Resolved
-
JDK-8023403 Number of opened files used in select() is limited to 1024 [macosx]
- Closed
- duplicates
-
JDK-8022394 java.net.SocketException: Invalid argument due to use of select() on Darwin
- Closed
-
JDK-8024710 Setting socket timeout results in a java.net.SocketException: Invalid argument
- Resolved
- relates to
-
JDK-8035897 Better memory allocation for file descriptors greater than 1024 on macosx
- Closed
-
JDK-8022394 java.net.SocketException: Invalid argument due to use of select() on Darwin
- Closed
-
JDK-8024710 Setting socket timeout results in a java.net.SocketException: Invalid argument
- Resolved