troubleshooting Question

When to use Indy TcpServer.IOHandler.WriteBufferOpen

Avatar of enigmasolutions
enigmasolutions asked on
DelphiTCP/IP
6 Comments1 Solution2555 ViewsLast Modified:
Hi,

In our application I notice we are using IOHandler.WriteBufferOpen as follows:
On the client AND on the server we are doing something like this...

        Connection.IOHandler.WriteBufferOpen;
        try
          Connection.IOHandler.Write(   Some Stream Data    )
          Connection.IOHandler.WriteBufferFlush;
          Connection.IOHandler.WriteBufferClose;
        except
          Connection.IOHandler.WriteBufferCancel;
        end;

Our application is a typical client server application (an accounting software package actually) where the client sends small requests for data and the server returns varying size streams of data.

We are getting problems connecting to a server that is running on a very poor internet connection (3rd World Country - 256kbps internet).

A short packet of information such as the initial login works.  But then we get Read Timeouts when a slightly larger packet of information is being sent from the server to our client.  Interestingly, we don't get any problem sending huge data the other way (even with writebuffer used on our client) - I guess that is because our internet technology is much better.


I am most interested in QUESTION 2 (below) because I want to understand wny my developers may have used it.


Question 1 -  Should we get rid of the WriteBuffer code?

Question 2 - In what scenarios would you use WriteBuffer?

Question 3 - Please confirm - Setting UseNaggle:=false will not help?

Question 4 - Please confirm - Setting that ReuseSocket:=rsTrue will not help?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros