Re: Multi-Thread vs Win98



Beto Neto wrote:

I have a NT Service installed on an Win2003Server with a IdTCPServer.

The client just connect and send info about itselft to validate it
access on my system... In the client application, I have a Timer
that "readln" from the server, to know when the application must be
closed...

Code:
S := IdTCPClient.ReadLn('', 5);
if S = 'DISCONNECT' then
Halt(0);

This might have nothing to do with your code at all.

Perhaps the connection is just timing out on you and dropping the
connection.

Reads do nothing for the connection if no data is available, especially
not server side.

Perhaps you need another timer doing a kind of "keep-alive" by sending
some data to the server and wait explicitly for the reply.
.



Relevant Pages

  • Re: .Net Scalability problem
    ... LoadRunner will peak out a server with a few virtual users. ... To get an idea of load, ... Fire off the test client and watch the number of ... > So I think that the MTC generate concurrent connection and per ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Regular disconnections from remote web workplace
    ... I can connect to office server and all office clients from home at all times ... be physically working right up until the connection is lost. ... If I enter http://companyip from a client I receive the login screen for the ... Click Services tab and select Hide All Microsoft Services and Disable ...
    (microsoft.public.windows.server.sbs)