Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13431 > unrolled thread

Chttp / Connectremote() / fail.. randomly

Started bySherlock <sherlock@sherlock.com.au>
First post2021-09-20 18:07 -0700
Last post2021-10-10 16:40 +0200
Articles 9 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Chttp  / Connectremote()  / fail.. randomly Sherlock <sherlock@sherlock.com.au> - 2021-09-20 18:07 -0700
    Re: Chttp / Connectremote() / fail.. randomly Massimo Bighelli <info@arcasistemi.it> - 2021-09-21 15:35 +0200
      Re: Chttp / Connectremote() / fail.. randomly Phil McGuinness <sherlocksoftware@gmail.com> - 2021-09-21 09:46 -0700
        Re: Chttp / Connectremote() / fail.. randomly Phil McGuinness <sherlocksoftware@gmail.com> - 2021-10-03 21:36 -0700
          Re: Chttp / Connectremote() / fail.. randomly "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-10-04 13:43 +0200
            Re: Chttp / Connectremote() / fail.. randomly Phil McGuinness <sherlocksoftware@gmail.com> - 2021-10-05 01:43 -0700
              Re: Chttp / Connectremote() / fail.. randomly "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-10-07 18:20 +0200
                Re: Chttp / Connectremote() / fail.. randomly Sherlock <sherlock@sherlock.com.au> - 2021-10-09 19:39 -0700
                  Re: Chttp / Connectremote() / fail.. randomly "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-10-10 16:40 +0200

#13431 — Chttp / Connectremote() / fail.. randomly

FromSherlock <sherlock@sherlock.com.au>
Date2021-09-20 18:07 -0700
SubjectChttp / Connectremote() / fail.. randomly
Message-ID<424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com>
  oHttp := CHttp{"Secure_Rates", INTERNET_DEFAULT_HTTPS_PORT }              
 //
 IF oHttp:ConnectRemote( WEBSERVER_2016 )  //  "27.50.65.xxx"
     // Do stuff.  

Randomly at first this will return false.. same box the IP.
Can ping to the IP.. it is there.
Some other flags to pass or some other way to test.

When I try and process again the connection continues to fail until I stop and start my VO service.

Any ideas...  things to try...

Phil McGuinness

[toc] | [next] | [standalone]


#13432 — Re: Chttp / Connectremote() / fail.. randomly

FromMassimo Bighelli <info@arcasistemi.it>
Date2021-09-21 15:35 +0200
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<sicn3m$11j5$1@gioia.aioe.org>
In reply to#13431
can you set a timeout in your connectremote ?


Massimo Bighelli
ARCA Sistemi S.r.l.


Il 21/09/2021 03:07, Sherlock ha scritto:
>    oHttp := CHttp{"Secure_Rates", INTERNET_DEFAULT_HTTPS_PORT }
>   //
>   IF oHttp:ConnectRemote( WEBSERVER_2016 )  //  "27.50.65.xxx"
>       // Do stuff.
> 
> Randomly at first this will return false.. same box the IP.
> Can ping to the IP.. it is there.
> Some other flags to pass or some other way to test.
> 
> When I try and process again the connection continues to fail until I stop and start my VO service.
> 
> Any ideas...  things to try...
> 
> Phil McGuinness
> 

[toc] | [prev] | [next] | [standalone]


#13435 — Re: Chttp / Connectremote() / fail.. randomly

FromPhil McGuinness <sherlocksoftware@gmail.com>
Date2021-09-21 09:46 -0700
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com>
In reply to#13432
Massimo

no Timeout in this class.

oHttp := CHttp{"Secure_Rates", INTERNET_DEFAULT_HTTPS_PORT }

oHttp:Timeout := 6000    // Syntax like this not part of class

//
IF oHttp:ConnectRemote( WEBSERVER_2016 ) // "27.50.65.xxx"
  // Do stuff

[toc] | [prev] | [next] | [standalone]


#13444 — Re: Chttp / Connectremote() / fail.. randomly

FromPhil McGuinness <sherlocksoftware@gmail.com>
Date2021-10-03 21:36 -0700
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com>
In reply to#13435
Based VO cHTTP class issue solved with a move to winHTTP
I call this code and a lot of it via a VO app running as service for like 15 years.
No reliable now and random.
The service has to be stopped and started and wait for the random inability to ConnectRemote()

interesting a Socket call prior to same port etc... works.
The cHTTP  connect fails.

Phil McGuinness
----

> oHttp := CHttp{"Secure_Rates", INTERNET_DEFAULT_HTTPS_PORT }
> oHttp:Timeout := 6000 // Syntax like this not part of class
> // 
> IF oHttp:ConnectRemote( WEBSERVER_2016 ) // "27.50.65.xxx" 
> // Do stuff

[toc] | [prev] | [next] | [standalone]


#13445 — Re: Chttp / Connectremote() / fail.. randomly

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2021-10-04 13:43 +0200
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<is07ncF8oimU1@mid.individual.net>
In reply to#13444
Hi Phil,

the VO cHTTP class is based on WinInet - this is practically the
communication layer of the Internet Explorer.

It could be that now that Internet Explorer is being dismissed also the
WinInet library has some not fixed problems.

Wolfgang

Phil McGuinness wrote:

> Based VO cHTTP class issue solved with a move to winHTTP
> I call this code and a lot of it via a VO app running as service for
> like 15 years.  No reliable now and random.
> The service has to be stopped and started and wait for the random
> inability to ConnectRemote()
> 
> interesting a Socket call prior to same port etc... works.
> The cHTTP  connect fails.
> 
> Phil McGuinness
> ----
> 
> > oHttp := CHttp{"Secure_Rates", INTERNET_DEFAULT_HTTPS_PORT }
> > oHttp:Timeout := 6000 // Syntax like this not part of class
> > // 
> > IF oHttp:ConnectRemote( WEBSERVER_2016 ) // "27.50.65.xxx" 
> > // Do stuff



-- 

[toc] | [prev] | [next] | [standalone]


#13446 — Re: Chttp / Connectremote() / fail.. randomly

FromPhil McGuinness <sherlocksoftware@gmail.com>
Date2021-10-05 01:43 -0700
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<2d9455b7-cbc8-4d8a-8331-fd1d409278bfn@googlegroups.com>
In reply to#13445
snip[  the VO cHTTP class is based on WinInet - this is practically the communication layer of the Internet Explorer.  It could be that now that Internet Explorer is being dismissed also the 
 WinInet library has some not fixed problems.  Wolfgang ]

I suspect app running  as service has a throttle limit if exceeded the connect via cHTTP is deactivated for the session the service is running.
Restart all good until some threshhold reached again. Sure with Internet  Explorer.  It only fails as service. For all other works fine, so far.

Re winHTTP in most places in my Service replaced cHTTP and working great. First time in a month this random issue.
Another part bit more complex but day or so will be replaced. I can still see it fails on cHTTP but my most critical does not anymore.
Will release a Function you can use for most anything for those do not want to learn the inner workings.
I have a HttpCall() function a wrapper and will release winHttpCall(). 

Simple to drive, black box for those that just want something that works.

Phil McGuinnness
 

[toc] | [prev] | [next] | [standalone]


#13447 — Re: Chttp / Connectremote() / fail.. randomly

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2021-10-07 18:20 +0200
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<is8l2kFruq9U1@mid.individual.net>
In reply to#13446
Hi Phil,

the main issue why I wrote the winHttp class is that WinInet is not
supported in Windows services, and I needed that:

https://docs.microsoft.com/en-us/troubleshoot/browsers/wininet-not-suppo
rted-in-services

Wolfgang

Phil McGuinness wrote:

> snip[  the VO cHTTP class is based on WinInet - this is practically
> the communication layer of the Internet Explorer.  It could be that
> now that Internet Explorer is being dismissed also the  WinInet
> library has some not fixed problems.  Wolfgang ]
> 
> I suspect app running  as service has a throttle limit if exceeded
> the connect via cHTTP is deactivated for the session the service is
> running.  Restart all good until some threshhold reached again. Sure
> with Internet  Explorer.  It only fails as service. For all other
> works fine, so far.
> 
> Re winHTTP in most places in my Service replaced cHTTP and working
> great. First time in a month this random issue.  Another part bit
> more complex but day or so will be replaced. I can still see it fails
> on cHTTP but my most critical does not anymore.  Will release a
> Function you can use for most anything for those do not want to learn
> the inner workings.  I have a HttpCall() function a wrapper and will
> release winHttpCall().
> 
> Simple to drive, black box for those that just want something that
> works.
> 
> Phil McGuinnness
>  



-- 

[toc] | [prev] | [next] | [standalone]


#13448 — Re: Chttp / Connectremote() / fail.. randomly

FromSherlock <sherlock@sherlock.com.au>
Date2021-10-09 19:39 -0700
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<0fe58478-6db1-45ea-9dd1-50632c6ed7b1n@googlegroups.com>
In reply to#13447
Wolfgang Riedmann 

snip[ the main issue why I wrote the winHttp class is that WinInet is not > supported in Windows services, and I needed that:  ]

Bugger it did for 15+ years.......... but a way forward.    Your class a bit more, samples and good tutorial site for programmers.

http://www.sherlock.com.au/sherlock32/Test_winHTTPCall.zip

Hope others get good use out of this code.. we used it extensively.  use the class use the function, it all works.
 
Phil McGuinness

[toc] | [prev] | [next] | [standalone]


#13449 — Re: Chttp / Connectremote() / fail.. randomly

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2021-10-10 16:40 +0200
SubjectRe: Chttp / Connectremote() / fail.. randomly
Message-ID<isgcakFbvdlU1@mid.individual.net>
In reply to#13448
Hi Phil,

> snip[ the main issue why I wrote the winHttp class is that WinInet is
> not > supported in Windows services, and I needed that:  ]
> 
> Bugger it did for 15+ years.......... but a way forward.    

I had used it too, but since I had some strange issues I have
researched and found that link. Since I have changed the services no
more issues.

And in most GUI applications I have also started to use winHttp.

Wolfgang


-- 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web