 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue Apr 03, 2007 7:40 pm Post subject: WinInet, max connections and timeouts |
|
|
Hello all,
I'm building an application which, on its server side, is making
multiple, simultaneous connections to a single web service. I'm
experiencing periodical timeouts or long reply times which make me
believe there is an issue with WinInet and simultaneous connections to
a single server. Have any of you experienced similar issues and, if
yes, how did you deal with them?
Other than that, do you know what the default timeout values are and
if they can be changed? |
|
| Back to top |
|
 |
danny heijl Guest
|
Posted: Sat Apr 07, 2007 1:52 am Post subject: Re: WinInet, max connections and timeouts |
|
|
alexissaris (AT) gmail (DOT) com schreef:
| Quote: | I'm building an application which, on its server side, is making
multiple, simultaneous connections to a single web service. I'm
experiencing periodical timeouts or long reply times which make me
believe there is an issue with WinInet and simultaneous connections to
a single server. Have any of you experienced similar issues and, if
yes, how did you deal with them?
|
WinInet is not suited for server-side use, and this is documented in the
Windows SDK.
You have to use WinHttp on a server, because WinInet was not designed to
be thread-safe etc.
Danny
--- |
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Tue Apr 10, 2007 2:38 pm Post subject: Re: WinInet, max connections and timeouts |
|
|
danny heijl skrev:
| Quote: | WinInet is not suited for server-side use, and this is documented in the
Windows SDK.
You have to use WinHttp on a server, because WinInet was not designed to
be thread-safe etc.
|
Hi!
AFAIKT SOAPHTTPTrans.pas uses WinInet.
Does Delphi have any support for using WinHttp when calling a webservice?
I have a COM+ server that makes calls to a webservice. How should I do
that if not by using the THTTPRIO object?.
One way could be to modify SOAPHTTPTrans.pas to use WinHttp instead of
WinInet. Perhaps somebody already has done just that?
regards
/Micke |
|
| Back to top |
|
 |
danny heijl Guest
|
Posted: Tue Apr 10, 2007 11:41 pm Post subject: Re: WinInet, max connections and timeouts |
|
|
Mikael Eriksson schreef:
| Quote: | AFAIKT SOAPHTTPTrans.pas uses WinInet.
Does Delphi have any support for using WinHttp when calling a webservice?
|
Not Yet.
| Quote: | I have a COM+ server that makes calls to a webservice. How should I do
that if not by using the THTTPRIO object?.
|
Convert it to .Net?
| Quote: | One way could be to modify SOAPHTTPTrans.pas to use WinHttp instead of
WinInet. Perhaps somebody already has done just that?
|
I don't think that it has been done.
Danny
--- |
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Wed Apr 11, 2007 12:01 am Post subject: Re: WinInet, max connections and timeouts |
|
|
danny heijl wrote:
| Quote: | Mikael Eriksson schreef:
AFAIKT SOAPHTTPTrans.pas uses WinInet.
Does Delphi have any support for using WinHttp when calling a webservice?
Not Yet.
I have a COM+ server that makes calls to a webservice. How should I do
that if not by using the THTTPRIO object?.
Convert it to .Net?
One way could be to modify SOAPHTTPTrans.pas to use WinHttp instead of
WinInet. Perhaps somebody already has done just that?
I don't think that it has been done.
|
For me it would probably be easier to rewrite this part of the server in
..Net instead of trying to replace SOAPHTTPTrans.pas. The bad thing about
this approach is that nothing else in our app (server or client) uses
..Net. One more issue to worry about at installation at the customer site.
It really would be great if CodeGear could implement this in the
THTTPRIO object. A property RunOnServer or something like that.
FWIW the server I have written will not have any trouble with thread
safety issues but it will probably have trouble with dialogs popping up
asking questions for a non existing user.
Thanks for your answer.
regards
/Micke
regard
/Micke |
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Wed Apr 11, 2007 8:13 am Post subject: Re: WinInet, max connections and timeouts |
|
|
Hi Bruneau,
Not really sure what you mean by "is in the backlog".
Sounds like you mean something that already should have been fixed.
I know that you can't/shouldn't tell me when WinHttp support is
scheduled to be implemented so I won't even ask. :)
regards
/Micke |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Wed Apr 11, 2007 8:13 am Post subject: Re: WinInet, max connections and timeouts |
|
|
Hello,
Support for WinHttp is in the backlog. There are a few transport related
issues like that (Client Certificates for example).
Fortunately there almost a one-to-one mapping for WinHttp to WinInet.
Probably I think that we would create a THttpReqResp variant instead of
{IFDEF} in the code as we did with USE_INDY.
Cheers,
Bruneau. |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Thu Apr 12, 2007 2:46 am Post subject: Re: WinInet, max connections and timeouts |
|
|
Hello,
| Quote: | Not really sure what you mean by "is in the backlog".
Sounds like you mean something that already should have been fixed.
|
We use XPlanner/SCRUM and the backlog is container of items *not* yet
implemented/fixed/etc.
| Quote: | I know that you can't/shouldn't tell me when WinHttp support is
scheduled to be implemented so I won't even ask.
|
Ummm... Someone must have shared our legalese difficulties with discussing
technical issues without stepping into forward looking territory. This came
up at our R&D meeting yesterday again and, I must admit, I don't get it.
Fortunately, I also don't know (really) when WinHttp support will be
scheduled as we have not sat down with Nick to prioritize the items in
XPlanner yet.
Cheers,
Bruneau. |
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Sat Apr 21, 2007 8:12 am Post subject: Re: WinInet, max connections and timeouts |
|
|
Jean-Marie Babet wrote:
| Quote: | Fortunately, I also don't know (really) when WinHttp support will be
scheduled as we have not sat down with Nick to prioritize the items in
XPlanner yet.
|
Hello Bruneau,
Would it help if made a QC Suggestion /Enhancement Request?
/Micke |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Sun Apr 22, 2007 1:31 am Post subject: Re: WinInet, max connections and timeouts |
|
|
Hello,
Yes, it would help as I don't think there's a QC on this issue yet. I can
add a reference to the QC# to the item in our backlog.
Thank you,
Bruneau.
"Mikael Eriksson" <micke314 (AT) gmail (DOT) com> wrote in message
news:4629c3c7$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Jean-Marie Babet wrote:
Fortunately, I also don't know (really) when WinHttp support will be
scheduled as we have not sat down with Nick to prioritize the items in
XPlanner yet.
Hello Bruneau,
Would it help if made a QC Suggestion /Enhancement Request?
/Micke |
|
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Mon Apr 23, 2007 8:12 am Post subject: Re: WinInet, max connections and timeouts |
|
|
Jean-Marie Babet skrev:
| Quote: | Yes, it would help as I don't think there's a QC on this issue yet. I can
add a reference to the QC# to the item in our backlog.
|
Report No: 44847 Status: Reported
Add support for WinHTTP to SOAP requests
http://qc.borland.com/wc/qcmain.aspx?d=44847 |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Fri Apr 27, 2007 11:53 pm Post subject: Re: WinInet, max connections and timeouts |
|
|
Thank you!
I'll pull that in as soon as I get a breather!
Cheers,
Bruneau. |
|
| 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
|
|