Integrated: 8265367: [macos-aarch64] 3 java/net/httpclient/websocket tests fail with "IOException: No buffer space available"
Daniel Fuchs
dfuchs at openjdk.java.net
Fri May 28 14:24:08 UTC 2021
On Thu, 27 May 2021 09:32:06 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> Hi,
>
> Please find below a fix for:
> 8265367: [macos-aarch64] 3 java/net/httpclient/websocket tests fail with "IOException: No buffer space available"
>
> The Pending* websocket tests create a server that accepts sockets to create a websocket, but never read data from the websocket in order to get the client side to block once the buffers are full.
> Unfortunately, the PendingOperations:cleanup methods was not called after each test methods invocations, causing sockets to leak and relying on the gc to cleanup.
>
> This caused an "IOException: No buffer space available" to be raised intermittently but reliably (1 run out of 50 in PendingTextPingClose).
>
> The fix makes sure that cleanup() is called appropriately after each test method invocation.
> It also tweaks PendingTextPingClose - which seemed to be failing more frequently - to use smaller send and receive buffers in order to reach the point at which the client bocks more quickly and avoid wasting system resources.
This pull request has now been integrated.
Changeset: 24bf35f8
Author: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/24bf35f862e285eeca662b9829901c0f91d247d5
Stats: 138 lines in 14 files changed: 83 ins; 24 del; 31 mod
8265367: [macos-aarch64] 3 java/net/httpclient/websocket tests fail with "IOException: No buffer space available"
Reviewed-by: chegar
-------------
PR: https://git.openjdk.java.net/jdk/pull/4222
More information about the net-dev
mailing list