Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jul : indy 9 in BDS 2006
| Subject: | indy 9 in BDS 2006 |
| Posted by: | "Eric" (er..@example.com) |
| Date: | Thu, 26 Jul 2007 12:55:24 |
I posted this to the borland.public.delphi.language.delphi.general and
was told this is a more proper location, so here it is again...
I have a tidtcpserver with commandHandlersEnabled but no commandHandlers
other then onExecute. In OnExecute, I attempt to readln the socket. It
appears the onExecute is called repeatedly while the connection is good,
and my readln is what is blocking the thread. Ie, if I have 5
connections which have not presented data (or at least a
) to my
server, all five threads are blocked at the readln.
With this situation, is it allowable for the main GUI to call
AThread.Connection.Writeln for each of the threads? (I hope so but I am
still able to deadlock the main GUI thread and I have little
possibilities left as the culprit)
Would it be better to create a commandHandler for each possible command?
(I can't see how that is different as the internals of the
commandhandler will just block as I did in the onExecute - but perhaps I
am wrong)
Thanks,
-Eric