BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ISAPI dll misses first request of IdHTTP client

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
sander
Guest





PostPosted: Thu Sep 15, 2005 1:50 pm    Post subject: ISAPI dll misses first request of IdHTTP client Reply with quote



 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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.