Hi Everyone,
I have the following code in Windows
FD_ZERO (&fds);
FD_CLR(hContext->s, &fds);
FD_SET (hContext->s, &fds);
timeout.tv_sec = 1;
timeout.tv_usec = 0;
/*
* We are supporting Connection Stalling.
* But for How much time the client stalls read??
* We take 2 minutes as default. CTT passes with two
* minutes and is a good time for closing the connections.
*/
SelectRet = select(FD_SETSIZE,
NULL,
&fds,
NULL,
&timeout);
if(!SelectRet)
{
/*Selection Timeout*/
printf(“%d:STO\n”,hContext->s);
//Cnt++;
//if(Cnt > 2) return false;
//continue;/*Try Again*/
return false;
}
if(SelectRet < 0)
{
/*Select Call Failed- Not Timeout*/
BcmLogMsg(“%d:SF”,hContext->s); fflush(stdout);
return false;
}
/*SEND THE DATA TO client.*/
The problem is that the select call is always succeeding even for a closed socket. Under linux this works great.
Any help will be highly appreciated.
Thanks,
– Ajitabh.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Monday, July 27, 2009 3:05 PM
To: Extended Discussions on System Software (particularly Windows)
Subject: RE:[nttalk] Languages: C# is Not C++… F# is Pure Ass
I didn’t say the entire OS has no hardware process isolation. I said the OS rather “avoid(s)
the use of hardware protections and ensure the safety of executing code only via software.”
I see…
However, the idea of controlling safety/privileges/etc purely in a software is not new in itself and has
been used by microkernels for at least 25 years, although introducing managed language to the scheme makes the whole thing truly unique…
BTW, probably you remember that around a year ago we discussed the possibility of implementing drivers as message queues so that the whole thing synchronize itself. Actually, I think this idea may be quite interesting, particularly for RTOSes (both microkernel-based and monoliths)…
Anton Bassov
NTTALK is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTTALK is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer