Answer the question
In order to leave comments, you need to log in
Why does the webserver receive only a subset of the many GET requests sent over sockets?
Hello, I'm sending a lot of GET requests using a single C socket. The problem is that the server only receives a small part. But if I open every time, send a request and then close the socket, then everything is OK. The TCP_NODELAY flag didn't help. I am using SOCK_STREAM.
Answer the question
In order to leave comments, you need to log in
Generally speaking, data transmitted within a single TCP session should not disappear anywhere. If you collect a traffic dump or replace the web server with netcat writing to a file, then you should see all your requests.
Are you sure that they are processed correctly on the web server side?
Is the server multi-threaded? This happens if all requests are processed in one thread.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question