UDP API responds very slow
Posted: Mon Jul 03, 2006 8:58 am
I want to know why sometimes the udp api is very slow to respond to my requests. I am developing a java client, currently called hexidb (we may change the name) and I know there is not an error in the networking i/o portion of the client that is currently working. The problem is just the udp api seems very slow to respond to certain packets. I constantly see in my clients debug logs:
I usually send these packets upon login, I send them at least 2 seconds apart. The login/logout/ping I have no problem with normally, but the top list and stats always seem to be slow or very slow or even sometimes lost.[NET] Parsed incomming packet with id 1 and reply code 200. Latency: 188ms
[NET] Parsed incomming packet with id 2 and reply code 206. Latency: 1342ms (SLOW)
[NET] Parsed incomming packet with id 4 and reply code 300. Latency: 78ms
[NET] ERROR: Timeout: Expected packet with id 5 not recieved. Assuming packet was lost or discarded. Attempting to resend request in 20 seconds.
[NET] ERROR: Timeout: Expected packet with id 5 not recieved. Assuming packet was lost or discarded. Attempting to resend request in 1 minutes.
[NET] Parsed late incomming packet with id 5 and reply code 207. Latency: 53347ms (VERY SLOW)
[NET] Parsed late incomming packet with id 5 and reply code 207. Latency: 6271ms (VERY SLOW) (REDUNDANT)
[NET] Parsed late incomming packet with id 5 and reply code 207. Latency: 207ms (REDUNDANT)