Re: [twsocket] ThttpCil Send bufsize problem

2006-01-12 Thread Francois Piette
> http://img79.imageshack.us/img79/2092/ics0rl.jpg

I don't know what your WPEPRO1 shows, but for sure it is _not_ IP packet size. 
Maybe WPEPRO1 show
the dialog with winsock API and this is _not_ directly related to line speed. 
The size of data
writtent to winsock at one time affect line speed only if your CPU is not fast 
enough to have enough
system calls to fill winsock buffer. It is for sure never the case with ADSL 
with even the slowest
CPU. But with gigabit link, you need a very fast CPU of course to sustain the 
gigabit line speed.

To see packet size, you need to use a packet sniffer such as ethereal. Link on 
the links page at my
website.

> I know Change buffer size cannot change upload speed,
> But I use ADSL 8M / 640 kbps it should has max upload
> speed with 80 kb/s.
> if I send every packet size 32768 it can up to 50kb/s
> speed. by 8193 only has 20kb/s speed.
> I want to use my max upload speed and how can I to do?

You automatically have best transfert speed. No need to change buffer size, 
defenitely.
You have the best overall speed, use asyncronous operation only (use GetAsync, 
PostAsync and so on).

btw: You have unreadable characters in your subject line, at least seen from 
here.

--
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: 回覆: Re: 回覆: Re: [twsocket] ThttpCil Send bufsize problem

2006-01-12 Thread Opqrst Ghrst
Hello Wilfried,

On HttpCli1->>CtrlSocket->BufSize I set 32768 it's OK
but when I Http Post to Send File it run at every
packet size 8193 not 32768, I think it seems has limit
so that I can not send over 8193 every packet size.
In TidHttp->SendBufferSize set 32768 it works well
every packet size is 32768.
See this Image.

http://img79.imageshack.us/img79/2092/ics0rl.jpg

I know Change buffer size cannot change upload speed,
But I use ADSL 8M / 640 kbps it should has max upload
speed with 80 kb/s. 
if I send every packet size 32768 it can up to 50kb/s
speed.
by 8193 only has 20kb/s speed.
I want to use my max upload speed and how can I to do?
  
Kind Regards

--- Wilfried Mestdagh <[EMAIL PROTECTED]> 說:

> Hello Opqrst,
> 
> > HttpCli1->>CtrlSocket->BufSize property, and I
> don't
> > know how to set can more than 8193 even to 32768
> or
> 
> You can set this to any value (it's integer), but if
> you let it default
> you will probably have best performance.
> 
> > Because by this way I can Upload with my full
> upload
> > connect speed.
> 
> Changing the buffer size will not change upload
> speed. This because, as
> Francois already have mentioned, ethernet packet
> size is 1514 bytes. If
> you have PPP connection then packetsize is 512
> bytes. This is low level
> and nothing to do with ICS or any other components.
> 
> ---
> Rgds, Wilfried [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.html
> http://www.mestdagh.biz
> 
> Wednesday, January 11, 2006, 21:56, Opqrst Ghrst
> wrote:
> 
> 
> > Hi
> 
> > I want to change the send buffer  just like
> Tidhttp it
> > property "SendBufferSize" , at ThttpCli I only
> change
> > it to max 8193 limit by set
> HttpCli1->>CtrlSocket->BufSize property, and I don't
> > know how to set can more than 8193 even to 32768
> or
> > more.
> > Because by this way I can Upload with my full
> upload
> > connect speed.
> > Dose ThttpCli has just like this property to set?
> 
> > sorry for my poor english.
> 
> > --- Francois PIETTE <[EMAIL PROTECTED]>
> 說:
> 
> >> > I try use TIdhttp it can send with packet 32768
> >> size.
> >> 
> >> That is not possible. Maximum packet size is 1514
> >> bytes on Ethernet it is 
> >> much less on modem links. You probably confuse
> the
> >> maximum buffer size you 
> >> may send and the packet size on the network.
> Totally
> >> different things.
> >> 
> >> THttpCli can send any data size. You don't have
> to
> >> worry about winsock 
> >> buffer size.
> >> 
> >> > But when I use this Object and HttpCli at the
> same
> >> > time I cannot complier. It seems these two
> object
> >> > cannot use the same time.
> >> 
> >> Strange. But easy solution: use only THttpCli !
> >> I can't help you more if you don't tell the error
> >> message you get. The 
> >> compiler always give error messages which give an
> >> incredible help to solve 
> >> problems. Seems you are neglecting those messages
> >> :-(
> >> 
> >> --
> >> [EMAIL PROTECTED]
> >> http://www.overbyte.be
> >> 
> >> 
> >> - Original Message - 
> >> From: "Opqrst Ghrst" <[EMAIL PROTECTED]>
> >> To: "ICS support mailing" 
> >> Sent: Tuesday, January 10, 2006 8:42 AM
> >> Subject: 回覆: Re: [twsocket] ThttpCil Send
> bufsize
> >> problem
> >> 
> >> 
> >> >
> >> > Thanks for your reply.
> >> > I try use TIdhttp it can send with packet 32768
> >> size.
> >> > But when I use this Object and HttpCli at the
> same
> >> > time I cannot complier. It seems these two
> object
> >> > cannot use the same time.
> >> >
> >> > --- Francois PIETTE
> <[EMAIL PROTECTED]>
> >> 說:
> >> >
> >> >> > Q1:
> >> >> > I set HttpCli1->CtrlSocket->BufSize=32768
> >> >> > ,but when I send data it only has Max
> BufSize
> >> >> 8193.
> >> >> > How can I set it more than 8193 and has it
> Max
> >> >> limit?
> >> >>
> >> >> Sending buffer size doesn't change much at the
> >> >> network layer. HTTP use TCP
> >> >> and TCP is a stream oriented proptocol.
> Default
> >> >> buffer size fit the largest
&

回覆: Re: [twsocket] ThttpCil Send bufsize problem

2006-01-09 Thread Opqrst Ghrst

Thanks for your reply.
I try use TIdhttp it can send with packet 32768 size.
But when I use this Object and HttpCli at the same
time I cannot complier. It seems these two object
cannot use the same time.

--- Francois PIETTE <[EMAIL PROTECTED]> 說:

> > Q1:
> > I set HttpCli1->CtrlSocket->BufSize=32768
> > ,but when I send data it only has Max BufSize
> 8193.
> > How can I set it more than 8193 and has it Max
> limit?
> 
> Sending buffer size doesn't change much at the
> network layer. HTTP use TCP 
> and TCP is a stream oriented proptocol. Default
> buffer size fit the largest 
> TCP packet on Ethernet network.
> 
> > Q2:
> > Dose HttpCli1->SendStream has Size limit?
> > When I send more than 100MB file, It seems not
> works.
> 
> Actually it works :-)
> When you say "it doesn't work", I can't help you.
> You must give more details 
> about what doesn't work. You must given error
> message or symptoms.
> 
> --
> [EMAIL PROTECTED]
> 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


___
 YM - 離線訊息
 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
 http://messenger.yahoo.com.hk
-- 
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] ThttpCil Send bufsize problem

2006-01-06 Thread Francois PIETTE

Q1:
I set HttpCli1->CtrlSocket->BufSize=32768
,but when I send data it only has Max BufSize 8193.
How can I set it more than 8193 and has it Max limit?


Sending buffer size doesn't change much at the network layer. HTTP use TCP 
and TCP is a stream oriented proptocol. Default buffer size fit the largest 
TCP packet on Ethernet network.



Q2:
Dose HttpCli1->SendStream has Size limit?
When I send more than 100MB file, It seems not works.


Actually it works :-)
When you say "it doesn't work", I can't help you. You must give more details 
about what doesn't work. You must given error message or symptoms.


--
[EMAIL PROTECTED]
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