| Dart Home | PowerTCP Server for ActiveX | Custom Development | Reply | PowerTCP Server for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Server for ActiveX Topic: Default Timeout for TCP Server children |
| User847 Posts: 5 Member Since: 03/15/01 |
posted December 16, 2005 1:31 PM I see that the default timeout for the daemon control is 0. Since the server control is based on the daemon control does that mean that any new children will have a timeout of 0? If not, where would a good place be to set the value? In the server control state event? Child.Timeout = 0 |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 16, 2005 1:43 PM Yes, the timeout is 0 by default. You would not want it to be greater than 0. Otherwise, any of the receiving or sending methods you call would block and the rest of the children would have to wait as well. |
| User847 Posts: 5 Member Since: 03/15/01 |
posted December 16, 2005 2:10 PM Thanks. It was kind of a stupid question. As soon as I posted it I thought, "Why don't I just add a little debug code and check it myself?" Too many Holiday parties this week... Can having the timeout value set to a value other than 0 on the client impact the server at all? I have an application that originally distributed data via UDP multicast. I have a few customers that just couln't get/keep their networks configured to support this so I added in the ability for the client to connect via a nailed up TCP connection. Every now and then the server now blows up but only when they utilize TCP clients. They were using older versions of the controls so we're getting them cleaned up and up to the latest versions. I've also modified the clients so the TCP control is set to a timeout of 0 and verified the application is properly designed to support this. The customer just doesn't want to roll out 100+ clients if they don't need to. Thanks again! |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 16, 2005 4:27 PM I don't see a way that it could. The client could send a steady stream of data in blocking mode, but the server would still be firing receive events for every small buffer received from the TCP/IP stack. |
| Reply | PowerTCP Server for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|