Board index » delphi » Tserver and Tclient Socket freezing!

Tserver and Tclient Socket freezing!


2003-07-18 04:39:47 AM
delphi33
Please explain to me why or how to fix the problem.
I am having two machines. One running a Tserversocket program and the second
is using a Tclient Socket to connect to the server.
if the socket is open for a while (more than 10 minutes) and if I try to
send a message from the client to the server, the server will not answer and
if I retry again for 2 or 3 the server will start answering like the normal
way.
It seems like the socket will go in a sleep mode. I don't know why? is there
any properties that I need to set on the server side? is it related to the
operating system?
Please help.
Thank you!
 
 

Re:Tserver and Tclient Socket freezing!

"Halim Boumedjirek" <XXXX@XXXXX.COM>writes
Quote
I am having two machines. One running a Tserversocket
program and the second is using a Tclient Socket to connect
to the server.
Are you using them in blocking or non-blocking mode? That makes a
difference in how the socket is handled.
Quote
It seems like the socket will go in a sleep mode.
There is no such thing in sockets.
Gambit
 

Re:Tserver and Tclient Socket freezing!

Are you running through a firewall?
I have problems myself when using firewall, where I have no problem
using direct pc to pc connection (using same program)
Maybe your firewall has some timeout periode that needs adjustment then.
--
Christen Fihl
HSPascal.Fihl.net/
 

Re:Tserver and Tclient Socket freezing!

You cannot (as far as I know) loose data on a TCP/IP connection. Not in
the middle of the transmission that is. Else the connection is lost.
As Gambit write; more code please.
--
Christen Fihl
HSPascal.Fihl.net/