Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jun : TIdTCPClient Problem - Odd behavior
| Subject: | TIdTCPClient Problem - Odd behavior |
| Posted by: | "Lee" (luv2program20..@yahoo.com) |
| Date: | 26 Jun 2005 23:00:26 |
Hello all,
Using Indy 9
I've written a client server app using Indy TCP Server and Clients.
The server retrieves data from a database sends back and xml
representation to the client.
Its been working quite nicely in initial testing. Unfortunately, I've
run into a problem that I can't figure out.
I use ReadLn() to get the xml string coming over the wire from the
serer. Then, calling the same function on the server which returns the
same about of string data, the TIdTCPClient's ReadLn() returns an empty
string.
Every other call returns an empty string. I've traced through the
server code and IT IS sending the same string back to the client, but
the client's ReadLn() always returns an empty string ever other call to
the server.
This seems to only exhibit when packets are larger. When receiving
packets say 2-3K, the Readln() returns the correct string everytime.
Any idea what I'm doing wrong?
--
Warm Regards,
Lee