Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Apr : Wininet APIs waiting for reply

www.cryer.info
Managed Newsgroup Archive

Wininet APIs waiting for reply

Subject:Wininet APIs waiting for reply
Posted by:"pri_sama" (pri_sa..@yahoo.com)
Date:5 Apr 2006 03:17:21

Hello !
  I have an application which communicates with a server through a cgi.
The application implements following APIs.
  ...
  HttpSendRequestEx,
  InternetWriteFile,
  HttpEndRequest,
  ...
The problem I am having is that when I make the server stop responding,
after 'InternetWriteFile' is called other APIs ( HttpEndRequest etc. )
hangs the application. When server works properly 'Proxomitron' shows
the following,
a ) after 'InternetWriteFile' is called the number of connections goes
back to 0. ( start connections were 0 );
When it is made server stop responding,
b ) after 'InternetWriteFile' is called the number of connections
remain same. ( here 1 )
I think Wininet APIs waiting for a response from cgi. How do I avoid
this situation ?

Thank you,
pri_sama.

Replies:

www.cryer.info
Managed Newsgroup Archive