I have a HTTP server that serve many short time connections from many clients, the server logged that there are some invalid HTTP requests, so I decide to capture the network traffic. This is what I got:
![image][1]
Because of HTTP keep-alive, the stream looks like have 3 requests, the first(end at APN: m-wap.0001
) is OK, but the second and third are not. I don't think user send such that request, I think it is a network problem (all of invalid requests look come from 3G network user, behind NAT network). We use tcp_tw_reuse
and tcp_tw_recycle
in earlier time, but I turn them off for now to avoid problem may relate to NAT network. But there are still some invalid requests, Do you have a suggest?
Update: Finally I found the answer, the network provider was alter the request by adding 4 last header, and they need to update SEQ/ACK number, but it seem that they did not do it correct in case of re-transmission.