Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Support bacteria -- it's the only culture some people have!


devel / comp.lang.clipper.visual-objects / Re: Chttp / Connectremote() / fail.. randomly

SubjectAuthor
* Chttp / Connectremote() / fail.. randomlySherlock
`* Re: Chttp / Connectremote() / fail.. randomlyMassimo Bighelli
 `* Re: Chttp / Connectremote() / fail.. randomlyPhil McGuinness
  `* Re: Chttp / Connectremote() / fail.. randomlyPhil McGuinness
   `* Re: Chttp / Connectremote() / fail.. randomlyWolfgang Riedmann
    `* Re: Chttp / Connectremote() / fail.. randomlyPhil McGuinness
     `* Re: Chttp / Connectremote() / fail.. randomlyWolfgang Riedmann
      `* Re: Chttp / Connectremote() / fail.. randomlySherlock
       `- Re: Chttp / Connectremote() / fail.. randomlyWolfgang Riedmann

1
Chttp / Connectremote() / fail.. randomly

<424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=929&group=comp.lang.clipper.visual-objects#929

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:706:: with SMTP id b6mr28283182qvz.29.1632186460781;
Mon, 20 Sep 2021 18:07:40 -0700 (PDT)
X-Received: by 2002:a37:db02:: with SMTP id e2mr27556373qki.436.1632186460572;
Mon, 20 Sep 2021 18:07:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 20 Sep 2021 18:07:40 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.174.33; posting-account=fkv0owoAAAA0IVZa41vS7WRyIu4l_fmV
NNTP-Posting-Host: 220.233.174.33
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com>
Subject: Chttp / Connectremote() / fail.. randomly
From: sherlock@sherlock.com.au (Sherlock)
Injection-Date: Tue, 21 Sep 2021 01:07:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: Sherlock - Tue, 21 Sep 2021 01:07 UTC

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

Re: Chttp / Connectremote() / fail.. randomly

<sicn3m$11j5$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=930&group=comp.lang.clipper.visual-objects#930

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!aioe.org!XmSV8T42PF62XZcgLukwsQ.user.46.165.242.91.POSTED!not-for-mail
From: info@arcasistemi.it (Massimo Bighelli)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Chttp / Connectremote() / fail.. randomly
Date: Tue, 21 Sep 2021 15:35:51 +0200
Organization: ARCA Sistemi S.r.l.
Message-ID: <sicn3m$11j5$1@gioia.aioe.org>
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com>
Reply-To: info@arcasistemi.it
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="34405"; posting-host="XmSV8T42PF62XZcgLukwsQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Content-Language: it
X-Notice: Filtered by postfilter v. 0.9.2
 by: Massimo Bighelli - Tue, 21 Sep 2021 13:35 UTC

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
>

Re: Chttp / Connectremote() / fail.. randomly

<bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=933&group=comp.lang.clipper.visual-objects#933

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:4c9:: with SMTP id ck9mr11603582qvb.52.1632242815399;
Tue, 21 Sep 2021 09:46:55 -0700 (PDT)
X-Received: by 2002:a05:620a:1a19:: with SMTP id bk25mr30548223qkb.355.1632242815264;
Tue, 21 Sep 2021 09:46:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Tue, 21 Sep 2021 09:46:55 -0700 (PDT)
In-Reply-To: <sicn3m$11j5$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.162.254; posting-account=DLsZHwoAAADZjAB6-BmLUbnomrA9rubZ
NNTP-Posting-Host: 220.233.162.254
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com> <sicn3m$11j5$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com>
Subject: Re: Chttp / Connectremote() / fail.. randomly
From: sherlocksoftware@gmail.com (Phil McGuinness)
Injection-Date: Tue, 21 Sep 2021 16:46:55 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: Phil McGuinness - Tue, 21 Sep 2021 16:46 UTC

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

Re: Chttp / Connectremote() / fail.. randomly

<b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=942&group=comp.lang.clipper.visual-objects#942

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a37:ae83:: with SMTP id x125mr8478818qke.37.1633322199970;
Sun, 03 Oct 2021 21:36:39 -0700 (PDT)
X-Received: by 2002:a37:a38a:: with SMTP id m132mr8480528qke.164.1633322199807;
Sun, 03 Oct 2021 21:36:39 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sun, 3 Oct 2021 21:36:39 -0700 (PDT)
In-Reply-To: <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.162.254; posting-account=DLsZHwoAAADZjAB6-BmLUbnomrA9rubZ
NNTP-Posting-Host: 220.233.162.254
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com>
<sicn3m$11j5$1@gioia.aioe.org> <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com>
Subject: Re: Chttp / Connectremote() / fail.. randomly
From: sherlocksoftware@gmail.com (Phil McGuinness)
Injection-Date: Mon, 04 Oct 2021 04:36:39 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Phil McGuinness - Mon, 4 Oct 2021 04:36 UTC

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

Re: Chttp / Connectremote() / fail.. randomly

<is07ncF8oimU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=943&group=comp.lang.clipper.visual-objects#943

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: rocksolid2!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: wriedmann@gmail.com (Wolfgang Riedmann)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Chttp / Connectremote() / fail.. randomly
Date: Mon, 4 Oct 2021 13:43:39 +0200
Lines: 34
Message-ID: <is07ncF8oimU1@mid.individual.net>
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com> <sicn3m$11j5$1@gioia.aioe.org> <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com> <b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net cgDl6cctxtev5bM/Tw/2gwYDNLaAPWJdqa9LOjQHwrTlAgxO8=
Cancel-Lock: sha1:rhP3YOR2NdhVD7iQfa00bXo5H5M=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Mon, 4 Oct 2021 11:43 UTC

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

--

Re: Chttp / Connectremote() / fail.. randomly

<2d9455b7-cbc8-4d8a-8331-fd1d409278bfn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=944&group=comp.lang.clipper.visual-objects#944

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:622a:255:: with SMTP id c21mr16790983qtx.35.1633423415883;
Tue, 05 Oct 2021 01:43:35 -0700 (PDT)
X-Received: by 2002:a37:45c8:: with SMTP id s191mr14007217qka.355.1633423415739;
Tue, 05 Oct 2021 01:43:35 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Tue, 5 Oct 2021 01:43:35 -0700 (PDT)
In-Reply-To: <is07ncF8oimU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.162.254; posting-account=DLsZHwoAAADZjAB6-BmLUbnomrA9rubZ
NNTP-Posting-Host: 220.233.162.254
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com>
<sicn3m$11j5$1@gioia.aioe.org> <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com>
<b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com> <is07ncF8oimU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2d9455b7-cbc8-4d8a-8331-fd1d409278bfn@googlegroups.com>
Subject: Re: Chttp / Connectremote() / fail.. randomly
From: sherlocksoftware@gmail.com (Phil McGuinness)
Injection-Date: Tue, 05 Oct 2021 08:43:35 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 15
 by: Phil McGuinness - Tue, 5 Oct 2021 08:43 UTC

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

Re: Chttp / Connectremote() / fail.. randomly

<is8l2kFruq9U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=945&group=comp.lang.clipper.visual-objects#945

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: rocksolid2!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: wriedmann@gmail.com (Wolfgang Riedmann)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Chttp / Connectremote() / fail.. randomly
Date: Thu, 7 Oct 2021 18:20:36 +0200
Lines: 41
Message-ID: <is8l2kFruq9U1@mid.individual.net>
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com> <sicn3m$11j5$1@gioia.aioe.org> <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com> <b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com> <is07ncF8oimU1@mid.individual.net> <2d9455b7-cbc8-4d8a-8331-fd1d409278bfn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net fGcGx972mxfc1KhXtJ1WaAQ7YSbB/afuWeRVE+7JguLx3cllA=
Cancel-Lock: sha1:LkIB2rgWQtxAAQR8GsEUwNO3iHA=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Thu, 7 Oct 2021 16:20 UTC

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
>

--

Re: Chttp / Connectremote() / fail.. randomly

<0fe58478-6db1-45ea-9dd1-50632c6ed7b1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=946&group=comp.lang.clipper.visual-objects#946

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:627:: with SMTP id a7mr12423377qvx.13.1633833550338;
Sat, 09 Oct 2021 19:39:10 -0700 (PDT)
X-Received: by 2002:a37:45c8:: with SMTP id s191mr9742952qka.355.1633833550136;
Sat, 09 Oct 2021 19:39:10 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sat, 9 Oct 2021 19:39:09 -0700 (PDT)
In-Reply-To: <is8l2kFruq9U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.174.33; posting-account=fkv0owoAAAA0IVZa41vS7WRyIu4l_fmV
NNTP-Posting-Host: 220.233.174.33
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com>
<sicn3m$11j5$1@gioia.aioe.org> <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com>
<b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com> <is07ncF8oimU1@mid.individual.net>
<2d9455b7-cbc8-4d8a-8331-fd1d409278bfn@googlegroups.com> <is8l2kFruq9U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0fe58478-6db1-45ea-9dd1-50632c6ed7b1n@googlegroups.com>
Subject: Re: Chttp / Connectremote() / fail.. randomly
From: sherlock@sherlock.com.au (Sherlock)
Injection-Date: Sun, 10 Oct 2021 02:39:10 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: Sherlock - Sun, 10 Oct 2021 02:39 UTC

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

Re: Chttp / Connectremote() / fail.. randomly

<isgcakFbvdlU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=947&group=comp.lang.clipper.visual-objects#947

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: wriedmann@gmail.com (Wolfgang Riedmann)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Chttp / Connectremote() / fail.. randomly
Date: Sun, 10 Oct 2021 16:40:20 +0200
Lines: 18
Message-ID: <isgcakFbvdlU1@mid.individual.net>
References: <424783b6-3e9d-4d44-a756-a6683e33e500n@googlegroups.com> <sicn3m$11j5$1@gioia.aioe.org> <bcebb2c7-f6ee-494c-b31f-df055e04f917n@googlegroups.com> <b06229d6-ad12-4221-b138-269be201ee07n@googlegroups.com> <is07ncF8oimU1@mid.individual.net> <2d9455b7-cbc8-4d8a-8331-fd1d409278bfn@googlegroups.com> <is8l2kFruq9U1@mid.individual.net> <0fe58478-6db1-45ea-9dd1-50632c6ed7b1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net 6+OacAL3coYEygahTXNCJQwoTeUBj9thHfBdbKe8e2MfYO1EU=
Cancel-Lock: sha1:RSN2RKYn49y+zvxdwvmAf0pTQqA=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Sun, 10 Oct 2021 14:40 UTC

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

--

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor