[Cvsnt] Leaking handles in Service.cpp DoCvsThread()

John Goehringer jgoehrin at sct.com
Thu Feb 28 15:23:39 GMT 2002


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


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 https://www.march-hare.com/cvspro/en.asp#downcvs



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook