Re: SIGIO only mean readable or writable, how channel event, avoid writable

2017-11-13 Thread yang chen
I write a c source file, and test in my machine. At the beginning, the fd is writable when the fd is open but the process doesn't receive the SIGIO. so i'm confused a lot of paper or books say that the process will receive SIGIO when the fd is writable or readable. but in fact it doesn't. so any id

Re: SIGIO only mean readable or writable", how channel event, "avoid writable (Zhang Chao)

2017-11-12 Thread yang chen
Thank you for you reply, but the channel each side can read or wirte not like pipe, so it's not readonly but readable and writable, please correct it if anywhere is improper. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listin

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread yang chen
Thank you very much, I did't see your reply in my email list or I ignored it, so I send twice, sorry, I got it. Thank you. Thank you. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread yang chen
Thank you very much, but there is another question, if delta larger than 1ms, it will invole the ngx_event_expire_timers, why not 2ms or others? how do you get the value? if there are much events comming for 30s, and epoll_wait return quickly (linux) which less than 1ms in each circle, and the ngx_

Re: Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-03 Thread yang chen
Thank you very much, but I have another question, if delta larger than 1ms, it will excute ngx_event_expire_timers, how do you get the value? why not 2ms or others? if there are much events comming for 30s, and epoll_wait return quickly(linux) which less than 1ms in each circle, and the ngx_event_e

RE: Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao)

2017-10-29 Thread yang chen
Thanks for your reply, why calling the ngx_event_expire_timers is unnecessary when ngx_process_events handler returns so quickly that the millisecond precision is not enough to display the calling time(less than 1ms maybe). ngx_process_events handler returns quickly which doesn't mean ngx_event_pr

why delta only include the execution time of ngx_process_events not ngx_event_process_posted

2017-10-28 Thread yang chen
hello, everyone. I have a problem when I read the nginx source code, why delta variable only include the execution time of ngx_process_events not ngx_event_process_posted, ngx_event_process_posted maybe takes more time. delta = ngx_current_msec; (void) ngx_process_events(cycle, timer, flags);