# TCP Client very slow

**URL:** <https://forum.xojo.com/t/tcp-client-very-slow/41858>\
**Category:** Web\
**Created:** [January 30, 2018, 6:26am UTC](https://forum.xojo.com/t/tcp-client-very-slow/41858 "2018-01-30T06:26:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Scholz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@Stefan\_Scholz](https://forum.xojo.com/u/Stefan_Scholz)\
**Post date:** [January 30, 2018, 6:26am UTC](https://forum.xojo.com/t/tcp-client-very-slow/41858/1 "2018-01-30T06:26:53Z")

</div>

I have written an Chatclient.  
At the TCP1 DataAviable() Event I wrote this code:

if tcp1.IsConnected then

//read new data from internal buffer  
StringFromServer = tcp1.ReadAll(Encodings.UTF8)

end if

StringFromServer is a public string.

I take a timer1 to manage this StringfromServer all 300 ms.

To try if it works I create a second time (timer2) 2000 ms.  
Timer2 send a small “Hello Frome here” to the server.

The sendcode is:

if tcp1.IsConnected then  
tcp1.Write(txt)  
end if

Then I try this with 1 Browser, all ok.  
Second Browser (client) all ok.  
But after the 5.th Browser all ist horrible slow.  
The Browsers are on different Computers.

The Problem ist NOT the server.

What do I wrong?

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:05pm UTC](https://forum.xojo.com/t/tcp-client-very-slow/41858/2 "2020-10-29T19:05:19Z")

</div>


