Are you sure the data is available for read and it's not just waiting for the response? Have you checked the otherr size of the comms to be sure that's not where the delay is?
Actually this server is developed for HSM Secure Execution Engine environment. I don't know whether this issue comes from the SEE environment or my code. Anyone did this before?
yes I am sure that the data is available for read. Yes I did check the client side.
yes I am sure that the data is available for read.
How do you know?
Maybe there's more to your code than you've posted, but what you shown is ok.
Yes I did check the client side.
I meant check the server side. But appears you don't really have access to it. But you can probably write your own mock server and see if you have problems with that.