W
wnjer
Unregistered / Unconfirmed
GUEST, unregistred user!
如题,长时间运行后(如2天),accept出现10038错误,客户端连接出现10061错误。
运行环境:win2000 professional sp4
代码:
while (not Terminated) do
begin
FillChar(soin, sizeof(SockAddr_in), 0);
slen := sizeof(SockAddr_in);
newSocket := WinSock.accept(ServerSocket, @soin, @slen);
if newSocket = INVALID_SOCKET then //出现10038错误??
begin
OutputDebugString(PChar('socks accept err:' + IntToStr(WSAGetlastError())));
Sleep(5);
continue; //忽略,继续
end;
NewClient(newSocket, soin);
newSocket := 0;
end; //while
运行环境:win2000 professional sp4
代码:
while (not Terminated) do
begin
FillChar(soin, sizeof(SockAddr_in), 0);
slen := sizeof(SockAddr_in);
newSocket := WinSock.accept(ServerSocket, @soin, @slen);
if newSocket = INVALID_SOCKET then //出现10038错误??
begin
OutputDebugString(PChar('socks accept err:' + IntToStr(WSAGetlastError())));
Sleep(5);
continue; //忽略,继续
end;
NewClient(newSocket, soin);
newSocket := 0;
end; //while