O HAI THIS BLOG PURPZIEZ 2 B UZED AZ MAH PLESIOUS MEM. :)

2006/07/25

no more zombie, tracing NPTL?

今日は,dumbtcpdが複数のホストからのtelnet DoS攻撃で
zombie大量発生な感じにならない様にした. :P
7/21からのdiffstatはこんな感じ.
無駄にドキュメンテーションしている所為で遅い. :(
[Today, I've coded to make dumbtcpd has no zombie
procs by using telnet DoS attacking from sevral clients
at same time. :P
Here's its diffstat 7/21~.
Well, my stupid documentation makes slow progress. :(]
 README                          |    8 -
b/Makefile | 76 +++++++++++++++++
b/doc/Makefile | 48 +++++++++++
b/doc/api_dec/accept_dec.c | 4
b/doc/api_dec/bind_dec.c | 4
b/doc/api_dec/connect_dec.c | 4
b/doc/api_dec/getaddrinfo_dec.c | 22 +++++
b/doc/api_dec/listen_dec.c | 4
b/doc/api_dec/socket_dec.c | 4
b/doc/restudy_socket_progs.tex | 173 ++++++++++++++++++++++++++++++++++++++++
b/include/dumbtcpd_common.h | 30 ++++++
b/include/dumbtcpd_main.h | 12 ++
b/include/dumbtcpd_service.h | 9 ++
b/include/dumbtcpd_signal.h | 9 ++
b/include/dumbtcpd_socket.h | 12 ++
b/src/dumbtcpd_common.c | 93 +++++++++++++++++++++
b/src/dumbtcpd_main.c | 56 ++++++++++++
b/src/dumbtcpd_service.c | 20 ++++
b/src/dumbtcpd_signal.c | 94 +++++++++++++++++++++
b/src/dumbtcpd_socket.c | 131 ++++++++++++++++++++++++++++++
20 files changed, 809 insertions(+), 4 deletions(-)

一応,マルチプロセスな並行サーバなのだけれど,
無意味にマルチスレッドにしようかとNPTLなサンプルプログラムを漁るが,
流石になかなか見付からんなー. :(
と思ったら思わぬ収穫.
[ATM, that app is a multi-processing concurrent server,
of cource.
I'd like to make it multi-thread, so I want some simple
NPTL sample code snippets.
Umm, there are no good sample for me.
BTW, I found it, though.]

NPTL Trace Tool Project

おー,サンプルがすげー. :)
[Heh, this sample is quite curious for me. :)]

0 件のコメント: