[Libwebsockets] Winsock ioctlsocket set to blocking mode ?

Roger Light roger at atchoo.org
Thu Sep 25 12:09:44 CEST 2014


Hi there,

This has already been fixed in version 1.3.

Cheers,

Roger


On Thu, Sep 25, 2014 at 9:12 AM, bjorka adinov <andy.green at linaro.org> wrote:
> I have tried that and it seems all is fine at the moment.
>
> Thank you
>
> On Thu, Sep 25, 2014 at 2:33 PM, Andy Green <andy at warmcat.com> wrote:
>>
>>
>>
>> On 25 September 2014 15:20:57 GMT+08:00, bjorka adinov
>> <adinov.bjorka at gmail.com> wrote:
>> >Hello Sir,
>> >
>> >Thank you for the response. Is there any plans to update the windows
>> >platform part concerning this problem ?
>>
>> Not from me since I do not use Windows.
>>
>> What happens if you change optl to ask for nonblocking?  He's happy or
>> blows up or what?
>>
>> -Andy
>>
>> >Thank you
>> >
>> >On Thu, Sep 25, 2014 at 1:54 PM, Andy Green <andy at warmcat.com> wrote:
>> >
>> >>
>> >>
>> >> On 25 September 2014 01:14:38 GMT+08:00, bjorka adinov <
>> >> adinov.bjorka at gmail.com> wrote:
>> >> >Hello Sir,
>> >> >Sorry if my question is downright amateurish as I'm little bit
>> >confused
>> >> >right now.
>> >> >
>> >> >I'm using winsock on Windows 7, with libwebsocket ver. 1.23
>> >> >
>> >> >As far as I know, libwebsocket utilize socket in non-blocking mode,
>> >but
>> >> >I
>> >> >found the statement
>> >> >
>> >> >ioctlsocket(fd, FIONBIO, &optl);
>> >> >
>> >> >where optl value equals zero, which is basically setting the socket
>> >to
>> >> >blocking mode. So a little help will be much appreciated.
>> >>
>> >> I'm sorry I have no idea about the Windows platform stuff.
>> >>
>> >> It's all contributed and I only test the Linux stuff.
>> >>
>> >> What you're saying is right, everything should be nonblocking in lws
>> >(and
>> >> is in the Linux platfom stuff).  If it isn't, it'll still seem to
>> >work OK
>> >> normally but under some conditions, all connections will block
>> >waiting for
>> >> one bad guy.
>> >>
>> >> -Andy
>> >>
>> >> >Thank you
>> >> >
>> >> >
>> >>
>> >>------------------------------------------------------------------------
>> >> >
>> >> >_______________________________________________
>> >> >Libwebsockets mailing list
>> >> >Libwebsockets at ml.libwebsockets.org
>> >> >http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>> >>
>> >>
>>
>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>



More information about the Libwebsockets mailing list