 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
sander Guest
|
Posted: Thu Sep 15, 2005 1:50 pm Post subject: ISAPI dll misses first request of IdHTTP client |
|
|
The purpose of this code is to get data from ISAPI ddl 2 into ISAPI dll
1. Both ISAPI dll's are written by me. In ISAPI dll 1 I use a IdHTTP
client to make a Get() request to ISAPI dll 2. Four request are made at
the same time (multi-threaded). If ISAPI dll 2 is not active and
therefore needs to be launghed by IIS, it misses the first request.
IdHTTP generates a "Connection Closed Gracefully". The other three
request are processed correctly. If I look in the webserver's logfile all
four request are logged so they have been received by the server.
This is the client-code:
SS := TMemoryStream.Create;
URL := 'http://'+RDOBackdoorServername+RDOBackdoorScriptname+'/getpict?
pictname='+Pictname+'&ModuleName=KDI';
DM.IdHTTP1.Get(URL,SS);
Response.StatusCode := DM.IdHTTP1.ResponseCode;
Starting ISAPI dll 2 takes a few hundreds of a second (connection to
MySQL, logfiles are generated, etc).
I asume that IdHTTP is thread-safe. Every thread has it's own copy.
Putting down criticalsections solves the problem but I think it also
slows down the process.
Does anybody know why it goes wrong?
Alexander van Meerten
VMSD
--- posted by geoForum on http://delphi.newswhat.com
|
|
| 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
|
|