TanYuxin-tyx commented on PR #22471: URL: https://github.com/apache/flink/pull/22471#issuecomment-1520008996
@zentol Apologies for my lack of understanding, but I am unclear on how the change ensures that the port is available. When creating a `DatagramSocket s = new DatagramSocket()`, a UDP socket is generated. However, when an `InetSocketAddress` is created, it only specifies an **Integer** type of the port. How does the `InetSocketAddress` differentiate between UDP and TCP? In my opinion, if we do not change the client's initialization process, `client.sendRequest` will still utilize TCP. Therefore, I fail to see how using `new DatagramSocket()` versus `new ServerSocket` makes a difference. Could you help take a look again? Thanks a lot. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
