J
J
Jere2014-03-28 02:26:56
C++ / C#
Jere, 2014-03-28 02:26:56

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

2 answer(s)
@
@ntkt, 2014-03-28
_

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?

V
VoidVolker, 2014-03-28
@VoidVolker

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 question

Ask a Question

731 491 924 answers to any question