libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Sockets on Windows


From: Nils Durner
Subject: Re: [libmicrohttpd] Sockets on Windows
Date: Sun, 17 Jan 2010 22:31:54 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0

> Ideally you should test against INVALID_SOCKET. You can also test
> against "-1"--but then you'd be relying on an implicit signed/unsigned
> conversion.
>   

PlibC now uses ints instead of SOCKETs, so we don't have to change MHD.

> Obviously, select() on Windows is not what you'd use if you were
> worried about heavy load--so I think constraining max connections
> would be reasonable.
>   

Right now, I think we should leave things as they are. If someone needs
to handle more than 64 read/write/error/result sockets, s/he can
increase FD_SETSIZE accordingly. Or is there something I have not taken
into account?


Thanks,

Nils





reply via email to

[Prev in Thread] Current Thread [Next in Thread]