Skip to content

SP_IocpServer::shutdown does not send FIN or RST to clients #45

@GoogleCodeExporter

Description

@GoogleCodeExporter
When you call SP_IocpServer::shutdown the clients don't receive FIN or RST 
packets. Therefore the connection remains open at the clients' end eventhough 
the server does not accept incoming packets anymore. You should see a FIN or 
RST packet sent to clients so that they can close the connections properly.

To reproduce:
1. Call SP_IocpServer::shutdown
2. Look at network log (from Wireshark, for example) and note that no FIN or 
RST packets were returned to clients.

I'm using version 0.95 of spserver. My operating system is Windows 7. My build 
environment is MinGW's gcc toolchain. I had to make a custom makefile for the 
project for MinGW. I can see from the debugger that closesocket (sp_close 
macro) is called when shutdown is called, but it doesn't result in FIN or RST 
packet. So this may actually be a problem in Windows itself (?).

Does this occur with other build environments?

Original issue reported on code.google.com by mmikk...@gmail.com on 15 Jun 2011 at 1:35

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions