[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] MHD_add_connection multiple requests
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] MHD_add_connection multiple requests |
Date: |
Fri, 03 Jan 2014 09:28:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
On 01/03/2014 08:18 AM, Wolfgang Haupt wrote:
>>> I guess my problem is that the connection where I get the first GET
>>> request is still sending data, while the Mediaplayer is requesting
>>> another range of data. This is usually OK if the client can
>>> establish the connections, because it just uses a new connection for
>>> the second (and all following) GETs.
>> Well, that should be no problem, unless you've limited the number of
>> connections per IP (which you can do in MHD) to a number that is too
>> small for your client. MHD can easily handle thousands of concurrent
>> requests.
> If I have called MHD_add_connection only once and used
> |MHD_USE_NO_LISTEN_SOCKET then I have only 1 connection for my client,
> right?
Yes.
> So this is definitely wrong usage, I guess?
Yes, now you might be able to call 'add_connection' again somehow,
but again the challenge is building this kind of reverse TCP connection
to a client that expects things to work differently ;-).
Happy hacking!
Christian