bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sometimes no data sent with a tcpstream


From: klaus triendl
Subject: sometimes no data sent with a tcpstream
Date: Fri, 28 Feb 2003 17:52:23 +0100

hi,


i have the following problem:

i have successfully written a server very similar to the SocketPort-example
and a client with my own derived tcpstream-class.
the communication between them works so far.

if both server and client are running on the same machine and communicate
over localhost it almost runs smooth - seldom it happens that no data is
sent to the server after establishing the connection.

but if the server runs on a remote machine it is terrible; most of the time
the server doesn't get the data from the client right after establishing the
connection.
if i make a short break of 100ms after connecting to the server then it
works but after some time of heavy communication (the server is the remote
part of a database application) no data is sent to the server anymore and my
read-methods reports a timeout.
pausing for some milliseconds solves the problem but this is not a good
solution.


the connection is established only once and used throughout a whole session.
does somebody have an idea what i could do?





--
klaus triendl





reply via email to

[Prev in Thread] Current Thread [Next in Thread]