[twsocket] TProxyInfo from User Made page

2007-07-27 Thread Arno Garrels
Hello Maurizio,

TProxyInfo does not parse the proxy-strings correctly
since here in W2K entries are separated by a space, I changed
below function to accept multiple separator chars.
Now when I pass separators [';', ' '] the component works fine.


procedure SplitString(const AString: string;
  const SepChars: TSysCharSet;
  ResList: TStrings);
var
  posini: integer;
  posend: integer;
  cnt: integer;
begin
  ResList.Clear;
  posini := 1;
  while posini = Length(AString) do
  begin
posend := Length(AString) + 1;
for cnt := posini to Length(AString) do
begin
  if AString[cnt] in SepChars then = changed
  begin
posend := cnt;
Break;
  end;
end;

if (posend - posini)  0 then
  ResList.Add(Trim(Copy(AString, posini, posend - posini)));

posini := posend + 1;
  end;
end;

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Hi,

I have written a server based on OverbyteIcsTcpSrv1.pas.

If I test the original server(OverbyteIcsTcpSrv1.pas) I can make 100 
connections 
to this server, send some data and then disconnect.

When I test my server, as I run through the 1 to 100 connects, I start to get 
disconnects, and when I have reached 100 I only have 20 or so connections still 
connected. The others have been disconnected.

Where would I need to look to determine why this is happening?

I am testing on an XP machine, and I have also tried testing on a Server 2003 
machine, and combinations of both with the same results.

Thanks,

Andy
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Francois,

It's both machines that limit the connections with my server, but the source 
server example works just fine.

I will have a look through the searchable archive.

...Andy
Francois Piette wrote:
 I am testing on an XP machine, and I have also tried testing on a Server
 2003
 machine, and combinations of both with the same results.
 
 It is the XP machine which limit the number of connections.
 With Win2K3, you should be able to have thousands of connections, provided
 you have anough RAM.
 Search the mailing list archive, this is a topic frequently discussed.
 Link to searchable archive is on the support page at my website
 (http://www.overbyte.be).
 
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be
 
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Friday, July 27, 2007 10:36 AM
 Subject: [twsocket] What determines the number of concurrent connections?
 
 
 Hi,

 I have written a server based on OverbyteIcsTcpSrv1.pas.

 If I test the original server(OverbyteIcsTcpSrv1.pas) I can make 100
 connections
 to this server, send some data and then disconnect.

 When I test my server, as I run through the 1 to 100 connects, I start to
 get
 disconnects, and when I have reached 100 I only have 20 or so connections
 still
 connected. The others have been disconnected.

 Where would I need to look to determine why this is happening?

 I am testing on an XP machine, and I have also tried testing on a Server
 2003
 machine, and combinations of both with the same results.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Francois,
Francois Piette wrote:
 It's both machines that limit the connections with my server,
 but the source server example works just fine.
 
 Not sure I understand...
 Do you mean the sample program delivered with ICS works OK but the code you
 wrote yourself is limited in the number of connections ?
Yes. Exactly.

I added my stuff to the ProcessData procedure, and added some variables to the 
  TTcpSrvClient = class(TWSocketClient) def.

Even if I update your orig server to include the new vars in   TTcpSrvClient = 
class(TWSocketClient), your server works, mine does not.

Looking through the searchable list, I tried increasing ListenBacklog from 5 to 
100, and my server now accepts 100 connections. Great.

What does ListenBacklog do?

I am using Turbo Delphi 2006, and the help system is just as crappy as D2005.

Regards,

Andy
 
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be
 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread Francois Piette
  Do you mean the sample program delivered with ICS works OK but the code
you
  wrote yourself is limited in the number of connections ?
 Yes. Exactly.

 I added my stuff to the ProcessData procedure, and added some variables to
the
   TTcpSrvClient = class(TWSocketClient) def.

 Even if I update your orig server to include the new vars in
TTcpSrvClient =
 class(TWSocketClient), your server works, mine does not.

Look for anything you allocate but do not free.
Activating FastMM memory leak detection could help.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


- Original Message - 
From: info2004 [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Friday, July 27, 2007 3:20 PM
Subject: Re: [twsocket] What determines the number of concurrent
connections?


 Francois,
 Francois Piette wrote:
  It's both machines that limit the connections with my server,
  but the source server example works just fine.
 
  Not sure I understand...
  Do you mean the sample program delivered with ICS works OK but the code
you
  wrote yourself is limited in the number of connections ?
 Yes. Exactly.

 I added my stuff to the ProcessData procedure, and added some variables to
the
   TTcpSrvClient = class(TWSocketClient) def.

 Even if I update your orig server to include the new vars in
TTcpSrvClient =
 class(TWSocketClient), your server works, mine does not.

 Looking through the searchable list, I tried increasing ListenBacklog from
5 to
 100, and my server now accepts 100 connections. Great.

 What does ListenBacklog do?

 I am using Turbo Delphi 2006, and the help system is just as crappy as
D2005.

 Regards,

 Andy
 
  Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
  --
  [EMAIL PROTECTED]
  Author of ICS (Internet Component Suite, freeware)
  Author of MidWare (Multi-tier framework, freeware)
  http://www.overbyte.be
 

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread info2004
Wilfried Mestdagh wrote:
 Hello,
 
 What does ListenBacklog do?
 
 It sets the maximum number of connections that are pending for
 acception. For example, if it is set to 5, and there are 10 clients
 connecting at the very same moment, only 5 will be in that queue.
 Normally you will never have problems with it if you accept very fast.

Thanks for that.

regards,

Andy
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread Francois Piette
 I am testing on an XP machine, and I have also tried testing on a Server
2003
 machine, and combinations of both with the same results.

It is the XP machine which limit the number of connections.
With Win2K3, you should be able to have thousands of connections, provided
you have anough RAM.
Search the mailing list archive, this is a topic frequently discussed.
Link to searchable archive is on the support page at my website
(http://www.overbyte.be).

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


- Original Message - 
From: info2004 [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Friday, July 27, 2007 10:36 AM
Subject: [twsocket] What determines the number of concurrent connections?


 Hi,

 I have written a server based on OverbyteIcsTcpSrv1.pas.

 If I test the original server(OverbyteIcsTcpSrv1.pas) I can make 100
connections
 to this server, send some data and then disconnect.

 When I test my server, as I run through the 1 to 100 connects, I start to
get
 disconnects, and when I have reached 100 I only have 20 or so connections
still
 connected. The others have been disconnected.

 Where would I need to look to determine why this is happening?

 I am testing on an XP machine, and I have also tried testing on a Server
2003
 machine, and combinations of both with the same results.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread Wilfried Mestdagh
Hello,

 What does ListenBacklog do?

It sets the maximum number of connections that are pending for
acception. For example, if it is set to 5, and there are 10 clients
connecting at the very same moment, only 5 will be in that queue.
Normally you will never have problems with it if you accept very fast.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread Francois Piette
 It's both machines that limit the connections with my server,
 but the source server example works just fine.

Not sure I understand...
Do you mean the sample program delivered with ICS works OK but the code you
wrote yourself is limited in the number of connections ?

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TProxyInfo from User Made page

2007-07-27 Thread Maurizio Lotauro
Scrive Arno Garrels [EMAIL PROTECTED]:

 Hello Maurizio,

Hello Arno,

 TProxyInfo does not parse the proxy-strings correctly
 since here in W2K entries are separated by a space, I changed
 below function to accept multiple separator chars.
 Now when I pass separators [';', ' '] the component works fine.

[...]

Do you pass two separators in all three calls of SplitString()?
Is it possible that the separator depends on ListSeparator (set in Control 
Panel)?


Bye, Maurizio.



This mail has been sent using Alpikom webmail system
http://www.alpikom.it

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be