sphttp 如何主动断开连接

31 views
Skip to first unread message

iunknown

unread,
Apr 20, 2009, 9:55:58 PM4/20/09
to spserver
http://code.google.com/p/spserver/issues/detail?id=19&can=1

下载了你的SPSERVER测试,发现使用很方便,但有一个问题我比较困惑,在testiocphttp
里,怎么断开一个客户端连接呢.在例子里好象是keep-alive,这样有些恶意的连接不断开
怎么办?我还不是很清楚这个过程,望不吝赐教.3X


1.server 默认是会断开连接的,除非在 response 的 header 中加了 keep-alive
2.server 在等待 client 发送 request 的过程中,会有超时,如果过了超时时间没有发送内容过来,也会主动断开

Reply all
Reply to author
Forward
0 new messages