[Cvsnt] Leaking handles in Service.cpp DoCvsThread()
John Goehringer
jgoehrin at sct.com
Thu Feb 28 15:23:39 GMT 2002
Hi,
In DoCVSThread, the handle passed as the parameter is eventually
released with a call to CloseHandle().
The handle created by accept() does not seem to be completely
released by CloseHandle(). With each TCP protocol request
the service's handle count goes up by one. Requests over the
named pipe do not make the service leak.
Using closesocket() on handles created by accept() seems to
solve the handle leaks, however CloseHandle() still needs to be
used on the named pipe's handle. Passing the handle from
the named pipe to closesocket() does not seem to release
the named pipe's handle.
Thanks,
John
_______________________________________________
Cvsnt mailing list
Cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list