[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded syste
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system. |
Date: |
Mon, 22 Jan 2018 23:43:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
-1 can be *normal*, as MHD calls 'accept()' (possibly via multiple
threads when using a thread pool) until there are no more clients. You
should check what errno says.
Also, in case accept4() is buggy on your platform, it is an
optimization; so you could #undef HAVE_ACCEPT4 if accept() +
setsockopt() works better. But I've not yet heard about a buggy
accept4() implementation...
Happy hacking!
Christian
On 01/22/2018 11:32 PM, Marcel Rutten wrote:
> Found it. accept4() returns an invalid socket.
> I will carry on tomorrow, it's almost midnight in my time zone ...
signature.asc
Description: OpenPGP digital signature
- [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., Marcel Rutten, 2018/01/21
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., silvioprog, 2018/01/21
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., Marcel Rutten, 2018/01/21
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., Evgeny Grin, 2018/01/22
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., Marcel Rutten, 2018/01/22
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., Marcel Rutten, 2018/01/22
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system.,
Christian Grothoff <=
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., Marcel Rutten, 2018/01/23
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., silvioprog, 2018/01/24
- Re: [libmicrohttpd] Unable to connect to libmicrohttpd in embedded system., silvioprog, 2018/01/23