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 

WinInet, max connections and timeouts

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






PostPosted: Tue Apr 03, 2007 7:40 pm    Post subject: WinInet, max connections and timeouts Reply with quote



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





PostPosted: Sat Apr 07, 2007 1:52 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote



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





PostPosted: Tue Apr 10, 2007 2:38 pm    Post subject: Re: WinInet, max connections and timeouts Reply with quote



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





PostPosted: Tue Apr 10, 2007 11:41 pm    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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





PostPosted: Wed Apr 11, 2007 12:01 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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





PostPosted: Wed Apr 11, 2007 8:13 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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





PostPosted: Wed Apr 11, 2007 8:13 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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





PostPosted: Thu Apr 12, 2007 2:46 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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. Smile

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





PostPosted: Sat Apr 21, 2007 8:12 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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





PostPosted: Sun Apr 22, 2007 1:31 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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





PostPosted: Mon Apr 23, 2007 8:12 am    Post subject: Re: WinInet, max connections and timeouts Reply with quote

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





PostPosted: Fri Apr 27, 2007 11:53 pm    Post subject: Re: WinInet, max connections and timeouts Reply with quote

Thank you!

I'll pull that in as soon as I get a breather!

Cheers,

Bruneau.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP 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.