RFR: 8310996: Add JFR event for connect operations [v3]
Alan Bateman
alanb at openjdk.org
Tue Nov 5 17:23:30 UTC 2024
On Tue, 5 Nov 2024 16:48:14 GMT, Tim Prinzing <tprinzing at openjdk.org> wrote:
>> Adds a JFR event for socket connect operations.
>>
>> Existing tests TestSocketEvents and TestSocketChannelEvents modified to also check for connect events.
>
> Tim Prinzing has updated the pull request incrementally with one additional commit since the last revision:
>
> improved exception names and handling
Discussed with Tim as there are a number of issues that will need attention. A SocketConnectEvent should only be "offered" for connect events, not cases such as "already connected" or "socket closed". For SocketChannel there is also a socket adaptor (blockingConnect method) that will need to be updated. The non-blocking connect/finishConnect is complicated and there are several issues there. Finally, remoteAddress requires stateLock.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21528#issuecomment-2457759513
More information about the core-libs-dev
mailing list