Welcome! Log In Create A New Profile

Advanced

Re: when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan
June 05, 2012 08:14AM
3Q again, :D

2012/6/5 Vladimir Shebordaev <vshebordaev@mail.ru>:
> 2012/6/5 l.jay Yuan <pass86@gmail.com>:
>> soga, my src\os\win32\ is download from
>> https://github.com/hehaiqiang/nginx, where is the official source for
>> win32?
>
> Not sure about win32 specific sources, but you can get stock nginx 1.3.1 from
>
> svn://svn.nginx.org/nginx/trunk
>
>>
>> 2012/6/5 Vladimir Shebordaev <vshebordaev@mail.ru>:
>>> 2012/6/5 l.jay Yuan <pass86@gmail.com>:
>>>> okay, 3Q.
>>>> another question, in ngx_wsasend.c 's ngx_wsasend function
>>>>
>>>> #if 0 // is test code?or really should do it?
>>>>       if ((size_t) n < size) {
>>>>           wev->ready = 0;
>>>>       }
>>>> #endif
>>>>
>>>
>>> As of the current release 'ready' flag is reset there. You should
>>> update nginx sources.
>>>
>>> ngx_handle_write_event() belongs to upper layer interface and is
>>> anyways expected to be called.
>>>
>>>> 2012/6/5 Vladimir Shebordaev <vshebordaev@mail.ru>:
>>>>> 2012/6/5 l.jay Yuan <pass86@gmail.com>:
>>>>>> sorry, fix: call ngx_handle_write_event?
>>>>>>
>>>>>> 2012/6/5 l.jay Yuan <pass86@gmail.com>:
>>>>>>> if i do not call ngx_handle_write_event  the ngx_connection_t 's
>>>>>>> ngx_event_t *write will never be handler.
>>>>>>> it means after c->send(c, buf, n) then call c->send(c, buf, n)?
>>>>>>>
>>>>>
>>>>> Yes, you should firstly process the data then update the connection
>>>>> state for the next event, i.e. call ngx_handle_write_event()
>>>>>
>>>>>>> 2012/6/5 Vladimir Shebordaev <vshebordaev@mail.ru>:
>>>>>>>> Hi!
>>>>>>>>
>>>>>>>> ngx_handle_write_event() is the event processiong state machine
>>>>>>>> interface function that is to proper update event and connection
>>>>>>>> states after write event is fired and the data has been probably
>>>>>>>> written to the corresponding descriptor. It can optionally update
>>>>>>>> send_lowat option on the connection socket.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Regards,
>>>>>>>> Vladimir
>>>>>>>>
>>>>>>>>
>>>>>>>> 2012/6/5 l.jay Yuan <pass86@gmail.com>:
>>>>>>>>> when to call ngx_handle_write_event?i am not really understanded.
>>>>>>>>> who can explain me?
>>>>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> nginx-devel mailing list
>>>>> nginx-devel@nginx.org
>>>>> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>>>>
>>>> _______________________________________________
>>>> nginx-devel mailing list
>>>> nginx-devel@nginx.org
>>>> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>>>>
>>>
>>> _______________________________________________
>>> nginx-devel mailing list
>>> nginx-devel@nginx.org
>>> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>>
>> _______________________________________________
>> nginx-devel mailing list
>> nginx-devel@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>>
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan 1571 June 05, 2012 06:02AM

Re: when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan 450 June 05, 2012 06:30AM

Re: when to call ngx_handle_write_event?i am not really understanded.

Vladimir Shebordaev 462 June 05, 2012 07:16AM

Re: when to call ngx_handle_write_event?i am not really understanded.

Vladimir Shebordaev 425 June 05, 2012 06:50AM

Re: when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan 355 June 05, 2012 07:18AM

Re: when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan 379 June 05, 2012 07:18AM

Re: when to call ngx_handle_write_event?i am not really understanded.

Vladimir Shebordaev 406 June 05, 2012 07:26AM

Re: when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan 451 June 05, 2012 07:30AM

Re: when to call ngx_handle_write_event?i am not really understanded.

Vladimir Shebordaev 445 June 05, 2012 07:48AM

Re: when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan 426 June 05, 2012 07:56AM

Re: when to call ngx_handle_write_event?i am not really understanded.

Vladimir Shebordaev 449 June 05, 2012 08:04AM

Re: when to call ngx_handle_write_event?i am not really understanded.

l.jay Yuan 637 June 05, 2012 08:14AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 220
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready