Anton S. wrote:
> In OverbyteIcsWSocketS unit,
> TCustomWSocketServer.TriggerSessionAvailable method, Client.FCliId is
> determined as incremental counter. But as this counter is resetted
> after $7F, it is possible that some client IDs are duplicated. Of
> course it would be a very rare case b
>It is only guaranteed that _connected clients never share the same CliId.
I couldn't see _where_ it is guaranteed... It's quite possible to have 1st
client with ID 1 connected for a long, long time while others connect and
disconnect very frequently (i.e. large proxy and a client downloading hug
>It is only guaranteed that _connected clients never share the same CliId.
I couldn't see _where_ it is guaranteed... It's quite possible to have 1st
client with ID 1 connected for a long, long time while others connect and
disconnect very frequently (i.e. large proxy and a client downloading hu
>Let's do some computation: the ID wrap around after 2.147.483.647
>connections. If you have 100 connections/disconnections per second, then it
>will take 248 days to wrap around.
Well,
"if FClientNum >= $7F then"
currently it wraps around after 8,388,607 what is very little and might be
> "if FClientNum >= $7F then"
> currently it wraps around after 8,388,607
That is probably my bug, missed an F. Will be fixed before you manage to
reproduce 8 million FTP connections in a single session.
Angus
--
To unsubscribe or change your settings for TWSocket mailing list
please go
Hello François,
Le 13/05/2011 08:01, Francois PIETTE a écrit :
Hello Fabrice,
I can send you login and password to test on a private mail if you want.
This FTP server (Filezilla) work fine with a filezilla client.
I have received it and I was able to test your FTP server.
I can reproduce the
Angus Robertson - Magenta Systems Ltd wrote:
>> "if FClientNum >= $7F then"
@Anton Thanks!
>> currently it wraps around after 8,388,607
>
> That is probably my bug, missed an F.
Actually two ;)
Anton is realy good in finding such slips.
--
Arno Garrels
--
To unsubscribe or change you
"if FClientNum >= $7F then"
currently it wraps around after 8,388,607
That is probably my bug, missed an F.
Should probably be MAXINT to avoid any issue with integer size change.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the
Francois PIETTE wrote:
>>> "if FClientNum >= $7F then"
>>> currently it wraps around after 8,388,607
>>
>> That is probably my bug, missed an F.
>
> Should probably be MAXINT to avoid any issue with integer size change.
And a cast of FClientNum to an unsigned integer is required, otherwise