Eric,
Turns out my EOT character was NOT being added, thus the server was timing out and closing the connection after 10 seconds. Go figure...
I've added the flush() statement just to be safe.
Now the problem seems to be my read loop either doesn't see the data, or it never sees the end. If I put a breakpoint at the append() statement, I hit the breakpoint as expected, I clear the breakpoint and let it continue running, everything works fine. If I don't have the breakpoint, it either never exits the read loop, or it never sees the data that I know is there now. For now I've added some logic to look for the EOT charcter and break out of the while loop.
Thanks again for all your help.
|