Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"In the long run, every program becomes rococo, and then rubble." -- Alan Perlis


devel / comp.lang.xharbour / SQLRDD connection dropped

SubjectAuthor
* SQLRDD connection droppedClaudio H
`* SQLRDD connection droppeddlzc
 `- SQLRDD connection droppedClaudio H

1
SQLRDD connection dropped

<7c846de7-bc24-4df5-8331-f42255c0ec71n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10552&group=comp.lang.xharbour#10552

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:887:b0:462:5da8:ad42 with SMTP id cz7-20020a056214088700b004625da8ad42mr11005908qvb.69.1653581901098;
Thu, 26 May 2022 09:18:21 -0700 (PDT)
X-Received: by 2002:a37:9a83:0:b0:6a3:45ac:1277 with SMTP id
c125-20020a379a83000000b006a345ac1277mr22037599qke.639.1653581900871; Thu, 26
May 2022 09:18:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.feed.usenet.farm!feed.usenet.farm!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 26 May 2022 09:18:20 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=201.212.87.116; posting-account=HpimJAoAAAB9g4YwFxxrm8_5y018T6ul
NNTP-Posting-Host: 201.212.87.116
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7c846de7-bc24-4df5-8331-f42255c0ec71n@googlegroups.com>
Subject: SQLRDD connection dropped
From: clau...@herszage.com (Claudio H)
Injection-Date: Thu, 26 May 2022 16:18:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1635
 by: Claudio H - Thu, 26 May 2022 16:18 UTC

Hi

What's the best way to check if an active connection is still alive?
I might guess the connection is probably dropped by leaving the app in an idle state for too long beyond the server timeout.

I'm getting the following message:
SR_ODBC/0 SQLExecDirect Error
08S01 - 10054 - [Microsoft][SQL Server Native Client 11.0]TCP Provider: Se ha forzado la interrupciĆ³n de una conexiĆ³n existente por el host remoto (an existing connection was interrupted by the remote host)

Regards
Claudio H

Re: SQLRDD connection dropped

<4de5acc5-5e0c-43fa-986a-b6a0984a81d1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10553&group=comp.lang.xharbour#10553

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:7d46:0:b0:2f3:dd89:5557 with SMTP id h6-20020ac87d46000000b002f3dd895557mr29514550qtb.567.1653582561146;
Thu, 26 May 2022 09:29:21 -0700 (PDT)
X-Received: by 2002:a05:620a:28ca:b0:6a0:a0a9:b2e6 with SMTP id
l10-20020a05620a28ca00b006a0a0a9b2e6mr23982928qkp.638.1653582560966; Thu, 26
May 2022 09:29:20 -0700 (PDT)
Path: i2pn2.org!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.xharbour
Date: Thu, 26 May 2022 09:29:20 -0700 (PDT)
In-Reply-To: <7c846de7-bc24-4df5-8331-f42255c0ec71n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <7c846de7-bc24-4df5-8331-f42255c0ec71n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4de5acc5-5e0c-43fa-986a-b6a0984a81d1n@googlegroups.com>
Subject: Re: SQLRDD connection dropped
From: dlz...@cox.net (dlzc)
Injection-Date: Thu, 26 May 2022 16:29:21 +0000
Content-Type: text/plain; charset="UTF-8"
 by: dlzc - Thu, 26 May 2022 16:29 UTC

Dear Claudio H:

On Thursday, May 26, 2022 at 9:18:22 AM UTC-7, Claudio H wrote:
> What's the best way to check if an active connection is still alive?

> I might guess the connection is probably dropped by leaving the app
> in an idle state for too long beyond the server timeout.

I don"t use SQLRDD.
https://groups.google.com/g/comp.lang.xharbour/c/WP4_mdhz9hc/m/MYpH0PKubqYJ

Looks like:
SR_GetConnection( nConnection )
Obtain the connection object to <nConnection>
.... might throw a detectable error.

SR_GetActiveConnection()
Get the active connection number
.... might not return a valid (or recorded) connection number.

SR_SetActiveConnection( nCnn )
Set the active connection number
.... might be used at the heart of a "keep alive" function? Prevent timeouts, maybe.

Alternatively, you could close any connections when entering a menu, and auto-close editing sessions to return to a menu state after so may minutes idle.

May have been more functionality added in 14 years...

David A. Smith

Re: SQLRDD connection dropped

<46f067c8-9c72-487e-8562-a18639cc7b79n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10559&group=comp.lang.xharbour#10559

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:2552:b0:67b:32e2:2400 with SMTP id s18-20020a05620a255200b0067b32e22400mr1120030qko.768.1654118670843;
Wed, 01 Jun 2022 14:24:30 -0700 (PDT)
X-Received: by 2002:a05:6214:e84:b0:464:4a65:62ba with SMTP id
hf4-20020a0562140e8400b004644a6562bamr15898488qvb.55.1654118670647; Wed, 01
Jun 2022 14:24:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 1 Jun 2022 14:24:30 -0700 (PDT)
In-Reply-To: <4de5acc5-5e0c-43fa-986a-b6a0984a81d1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=181.47.6.188; posting-account=HpimJAoAAAB9g4YwFxxrm8_5y018T6ul
NNTP-Posting-Host: 181.47.6.188
References: <7c846de7-bc24-4df5-8331-f42255c0ec71n@googlegroups.com> <4de5acc5-5e0c-43fa-986a-b6a0984a81d1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <46f067c8-9c72-487e-8562-a18639cc7b79n@googlegroups.com>
Subject: Re: SQLRDD connection dropped
From: clau...@herszage.com (Claudio H)
Injection-Date: Wed, 01 Jun 2022 21:24:30 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1272
 by: Claudio H - Wed, 1 Jun 2022 21:24 UTC

Hi
I found the SR_CheckCnn() function that checks exactly what I need.
Regards
Claudio H

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor