fuimaz / spserver

Automatically exported from code.google.com/p/spserver
Other
0 stars 0 forks source link

SP_IocpLFServer.shutdown() 不能完全停止? #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
调用了 SP_IocpLFServer.shutdown() 
之后,客户端依然可以连接成功,但是不会再接受数据,再��
�
run时会出错,因为端口没有被释放。

是我调用方法不对还是BUG?

俺在开发预期的是 SP_IocpLFServer.shutdown() 
之后,接受未完成的数据接收,然后断开所有连
接,停止accept新连接,关闭socket,直到下次执行start。

Original issue reported on code.google.com by jack.xnu...@gmail.com on 2 Jul 2009 at 3:37

GoogleCodeExporter commented 9 years ago
用的是什么版本呢?之前有一个版本是无法完全停止,后来��
�了一次修改的。

Original comment by stephen....@gmail.com on 3 Jul 2009 at 1:27

GoogleCodeExporter commented 9 years ago
呃... 我是svn拉取的,貌似是r128

Original comment by jack.xnu...@gmail.com on 3 Jul 2009 at 3:01

Attachments:

GoogleCodeExporter commented 9 years ago
我是在vs2008 windows7 rc下编译和运行的

Original comment by jack.xnu...@gmail.com on 3 Jul 2009 at 3:03

GoogleCodeExporter commented 9 years ago
昨天小小的改了一下SP_IocpLFServer的shutdown部分,看似可以了,
只是在Server关闭后,客户端正在进行中的
会话就会挂住,还在看代码。

我的改动只是在shutdown时把listenSocket关闭,把threadPool和完成��
�口等句柄释放。

Original comment by jack.xnu...@gmail.com on 3 Jul 2009 at 3:08