RE: setting socket connect timeout





-----Original Message-----
From: tadamsmar [mailto:tadamsmar@xxxxxxxxx]
Sent: Thursday, May 22, 2008 4:32 PM
To: Info-VAX@xxxxxxxxxxxx
Subject: Re: setting socket connect timeout

On May 22, 3:28 pm, "Dan Allen" <dal...@xxxxxxxx> wrote:
-----Original Message-----
From: tadamsmar [mailto:tadams...@xxxxxxxxx]
Sent: Thursday, May 22, 2008 2:40 PM
To: Info-...@xxxxxxxxxxxx
Subject: setting socket connect timeout

I am trying to write some production code based on: tcpip
$examples:tcpip$tcp_client_qio.c

The connect qiow (with the io$_access function code)
times out in75
seconds. I can find documentation that says I can change that
timeout for this socket (I don't want to change the
system timeout).  
But I can't figure out how to change the timeout.  This is for a
device on a small isolated intranet, so I what to use a shorter
timeout.

Does anyone know how to change the timeout?

My documentation is quite old but it did contain a statement about
timeouts just as you describe. I expected to find the timeout
functionality in IO$SETMODE but I didn't....

Dan- Hide quoted text -

- Show quoted text -

Since I posted, I found that there is an extended
characteristics buffer specfied as p2 (see below)

but I can't get it to work. The code runs, but I still get a 75
second timeout

Format

status = SYS$QIO(efn, chan, IO$_SETMODE | IO$M_CTRL, iosb,
astadr, astprm, 0, address, 0, 0, 0, 0)

Argument

p2=address OpenVMS usage:
vector_word_unsigned

I tried the address of descriptor for 6 byte item with short
id = 4 and long value = 20

Documented here:

http://www.process.com/tcpip/tcpware57docs/Programmer/Ch03.htm


That document says you can also specify the timeout as P6 of the QIO(W) and it
takes precedence over anything specified in the extended characteristics block
(if present). Have you tried that? Unfortunately I don't have a system to
experiment with....

Dan


.



Relevant Pages

  • Re: setting socket connect timeout
    ... Subject: setting socket connect timeout ... out in75 seconds. ... My documentation is quite old but it did contain a statement about timeouts just ...
    (comp.os.vms)
  • RE: setting socket connect timeout
    ... Subject: setting socket connect timeout ... I am trying to write some production code based on: ... The connect qiow (with the io$_access function code) times ...
    (comp.os.vms)
  • Re: Advantech ADAM-6018 Communication With LabView
    ... bytes and reports a timeout error. ... Buffered?Waits until all bytes you specify ... This technique is the most flexible, ...
    (comp.lang.labview)
  • Re: DataView Timeout Becomes SQLReader Sorting Issue
    ... <<<so I looked around and found that if I use a SQLReader I can specify a ... The ADO.NET SQLCommand object has a timeout value... ... A SQLDataReader is meant only for forward-only read-only activity. ... > found that if I use a SQLReader I can specify a Timeout value. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Start and end time of a job
    ... How do I specify a starting time AND and an ending time? ... As another recourse, a "timeout" adverbial function, script, ... typeset sleep_pid=$! ...
    (comp.unix.shell)