 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Eric Carlson Guest
|
Posted: Sat Sep 10, 2005 10:06 am Post subject: Indy 9/D7 - testing if HTTPServer socket in use |
|
|
I'm hunting a bug which occurs when I run an app containing the same form as
a service (SvCom) as well as in an interactive app. I start the service
first. They both have a HTTP server and what I need to do is manage the
"handover" properly, in other words if the service is running and the
interactive app starts, the interactive app sends a PostMessage to the
server which calls HTTPServer.active : = false and post an ack to the
interactive version which then starts the server, When the interactve
version quits, similar reverse messages are sent to the service so the
action serving is basicaly transparent no matter what combinatoin is used,
and the rule of only 1 instance of httpserver active at once is preserved.
What I'm finding though is the service really seems to crawl when I try
this, its like just setting active := false isn't enough. I know the
messages are syncing properly from traces and I know its the http component
because if I never set any active to true I don't get this effect.
Is my scheme too simplistic? Is there a way I can ask a HTTPServer if the
port is in use before setting active true and just trapping the exception
please? Thanks...
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|