# Loss of connection (problem with timeout?)

**URL:** <https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [May 4, 2014, 9:12am UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152 "2014-05-04T09:12:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Andreev1](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexander\_Andreev1](https://techcommunity.softwareag.com/u/Alexander_Andreev1)\
**Post date:** [May 4, 2014, 9:12am UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/1 "2014-05-04T09:12:28Z")

</div>

Hello.

I have a program. In some cases execution this program takes a long time. When execution is delayed I get a message from client “The host session has been disconnected”.

If I put an operator INPUT with some message in the middle of the program then a program completes without error.

I guess the problem is in some timeout. But I do not know in what timeout and how to set it.

Hope for your help.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 5, 2014, 12:45pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/2 "2014-05-05T12:45:48Z")

</div>

Check out MADIO.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [May 5, 2014, 8:59pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/3 "2014-05-05T20:59:28Z")

</div>

What exactly is “the client” ?

---

<div class="post-metadata">

**Author:** ![Alexander\_Andreev1](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexander\_Andreev1](https://techcommunity.softwareag.com/u/Alexander_Andreev1)\
**Post date:** [May 6, 2014, 7:03am UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/4 "2014-05-06T07:03:35Z")

</div>

> [@Steve Robinson](#):
>
> Check out MADIO.

MADIO statement is ok.  
MADIO = 0

> [@Wolfgang Winter](#):
>
> What exactly is “the client” ?

I mean the Natural Session in a browser.

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 6, 2014, 12:15pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/5 "2014-05-06T12:15:25Z")

</div>

Some questions:

What version of Natural? What platform?

What is the source of the message? Natural or the Operating System?

What is the program doing? What role does the browser play?

> [@](#):
>
> ```
> Wolfgang Winter wrote:What exactly is "the client" ?
> I mean the Natural Session in a browser.
> 
> ```

steve

---

<div class="post-metadata">

**Author:** ![Nikolay\_Kuhta](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@Nikolay\_Kuhta](https://techcommunity.softwareag.com/u/Nikolay_Kuhta)\
**Post date:** [May 6, 2014, 2:48pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/6 "2014-05-06T14:48:09Z")

</div>

By the way (unless it is misspelling, of course), it is really MADIO=0 as Steve fairly mentioned; MATIO has nothing to do with Adabas PARAMS

---

<div class="post-metadata">

**Author:** ![Alexander\_Andreev1](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexander\_Andreev1](https://techcommunity.softwareag.com/u/Alexander_Andreev1)\
**Post date:** [May 6, 2014, 2:48pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/7 "2014-05-06T14:48:39Z")

</div>

I use Natural 6.3  
Platform: Linux Suse

> [@](#):
>
> What is the source of the message? Natural or the Operating System?

Honestly, I do not know. In the program there is error handling.

```auto

ON ERROR DO
+nerr(n1) = 2
move *program to +program(a8)
move *error-line to +error-line(n4)
move *error-nr to +error-nr(n4)
move 1 to +language(i1)
CALLNAT 'ERSHORT'
CALLNAT 'ER3200'
DOEND
```

If I have an error in a program I get little report. But this code is not called in this case.  
Me simply throws out the program. I get this message (see attachment).

> [@](#):
>
> What is the program doing? What role does the browser play?

The program accesses to the ADABASE database and does some calculations with records.  
Browser works as a client. I connect via a browser to the remote server.

 ![screen.JPG](https://global.discourse-cdn.com/techcommunity/original/2X/5/500866e471c07ac482bde87ed9c89c4612a33546.jpeg)

---

<div class="post-metadata">

**Author:** ![Alexander\_Andreev1](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexander\_Andreev1](https://techcommunity.softwareag.com/u/Alexander_Andreev1)\
**Post date:** [May 6, 2014, 3:05pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/8 "2014-05-06T15:05:41Z")

</div>

> [@Nikolay Kuhta](#):
>
> By the way (unless it is misspelling, of course), it is really MADIO=0 as Steve fairly mentioned; MATIO has nothing to do with Adabas PARAMS

Sorry, this is a misspelling. Already corrected.

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 6, 2014, 10:59pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/9 "2014-05-06T22:59:49Z")

</div>

It looks like the connection between your browser and Natural’s web server, was lost.

Can you confirm this?

---

<div class="post-metadata">

**Author:** ![Alexander\_Andreev1](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexander\_Andreev1](https://techcommunity.softwareag.com/u/Alexander_Andreev1)\
**Post date:** [May 7, 2014, 7:07am UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/10 "2014-05-07T07:07:33Z")

</div>

Yes, but I don’t know reason.

I tried use an another browser. The same result.

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 7, 2014, 1:19pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/11 "2014-05-07T13:19:49Z")

</div>

Hi Alexander;

I am not a “unix person”, so am not familiar with idiosyncrasies of web stuff when running with unix.

Looking through the documentation, there are two parameters that might be involved, SRVTERM and SRVWAIT. You might check what they are set to.

steve

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [May 7, 2014, 5:10pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/12 "2014-05-07T17:10:49Z")

</div>

This is similar to the timeout issue with Natural Development Server (NDV). Check this forum for SPoD timeout issues. As far as I know, it has never been resolved, nor has it been determined whether its a Natural issue or a host/network issue.

When connecting Studio to a Unix or mainframe Natural host, I need to press ENTER every 15 minutes or so to maintain the connection. Yet my mainframe emulator or my Unix shell can be left idle for 12 hours without resulting in a timeout. Frustrating.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:31pm UTC](https://techcommunity.softwareag.com/t/loss-of-connection-problem-with-timeout/176152/13 "2021-04-02T15:31:01Z")

</div>


