SocketChannel Client not reading Messages sent by Server and drop of message
posted 8 months ago
We have a application which is socketChannel Client connects to the server with a single connection. Sending the ISO Transaction request to the server.
Client sends Echo messages at freq interval to the ISO Switch, similarly Server can also send Echo Requests to the client.
In production, we could see lot of messages are not read by client , but in TCPDUMP, it shows server sent the rquest and reached the client.
We have a problem related to packets getting not read by a socketchannel client, where as server responded back to us with response
Please find the code for the socketchannel read [ We are using Blocking Mode]. Kindly suggest the way to tune the code.