On Tuesday, March 25, 2014 4:03:35 PM UTC+5:30, Saúl Ibarra Corretgé wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > > > By design my server queues incoming requests and triggers certain > > number of threads to process the queue. And in 'after_thread' > > callback I do cleanup activities. For legitimate requests it works > > perfectly well. > > > > Do you use uv_que_work for that? >
Yes, I use uv_queue_work. I'll check with resources you've given. Many thanks :) But meanwhile any quick clue to get around this problem? > > > However, if there are continuous requests pouring into ( a typical > > DoS attack ) libuv keeps calling only 'on_read' and it never calls > > 'after_thread' callback (Even if threads are finished running). > > > > Libuv invokes all those pending 'after_thread' callbacks only once > > incoming requests are stopped (or paused). Tried a lot but not sure > > how to make libuv to call 'after_thread' even when it is hammered > > by continuous reads. > > > > Where can I find more info on timer, check, prepare and idle > > callbacks? I'll try to see if they can help me handling DoS. > > > > Checkout these resources: https://github.com/joyent/libuv#documentation > > Regards, > > - -- > Saúl Ibarra Corretgé > bettercallsaghul.com > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: Using GnuPG with Icedove - http://www.enigmail.net/ > > iQIcBAEBAgAGBQJTMVt+AAoJEEEOVVOum8BZVuEQALKTPq2ZayPOloFt58MGfJuJ > 9FHx0ZvwoSK12jzHwk4R810+/d8L9G4Ot8vReq4UYaBQmB9ryv/pNKRi6yWmsfz/ > MQnHy9NsWyl1vGLJbkRlB1e2AbINsNMhswlWIItpdfqC5skX0XAuLSX8S8E+BsmA > jK9m4KFooYrm1PheQZH0Yd8AP2opCpOpL0+vVVAtgqW3F1hxvvYHoz/pkZAFTjd9 > Q3/8QA+6qpjopSwQn48UcMd9scCYGXcm5i7iiGxZDjXwjlL9RDZ9AfJb1as4Q3qL > 0uMVrmbapnpI5H6IkO9SYtQakIWxEa7fmqHQqwqcMiqqdhiwxXHgkC076DF0Xq+8 > qahgCOMyMOIrzTJ4Hk/y5VRc0zDbql/aJlKlOrXHv+CumRKCsGg4HPwqicVQVhDV > MGTrnvTyMQ5glCXd7XPqTBDBqmMZuB/bskEwDNiCRj7t2TIMrJy3jSvLLZwA3k8x > H/x+UvQ60PkIqdOD37unoO3VBLpK6i6pQbyLtfrwRC5G1doYmOooj4s3L+6x6mkI > vJIucYTptZBv1KqwhFxgsz+4DkqQAzdnG6l3R0i7UapaVYwZqGobW6Bp+0p1CY/e > JV4+J9B4MkergHYD3NdWwB9FLQ9hy2ykfGS80NkBNOXukCcZiwmZbsNJPu87zQir > 3T011A5wro/2ZJbawUkj > =sqdX > -----END PGP SIGNATURE----- > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
