Re: setting socket connect timeout
- From: tadamsmar <tadamsmar@xxxxxxxxx>
- Date: Fri, 23 May 2008 13:03:54 -0700 (PDT)
On May 22, 5:49 pm, Jim Duff <spam.t...@xxxxxxxxx> wrote:
tadamsmarwrote:
On May 22, 3:28 pm, "Dan Allen" <dal...@xxxxxxxx> wrote:
[snip]My documentation is quite old but it did contain a statement about timeouts just
I am trying to write some production code based on: tcpip
$examples:tcpip$tcp_client_qio.c
[snip]
Does anyone know how to change the timeout?
as you describe. I expected to find the timeout functionality in IO$SETMODE but
I didn't....
[snip]
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
Hmm, it's difficult to determine which IP stack you are using. First
you are looking in the TCP/IP Services examples, then you quote from a
TCPware manual... I'm assuming it's TCP/IP Services, and not Process
Software's TCPware.
You need to look at the TCP$C_TCP_KEEPINIT argument for a IO$_SETMODE
call to $QIO(W). It's documented here:
<http://h71000.www7.hp.com/doc/82final/6529/6529pro_028.html#tcp_set_t...>
Jim.
--www.eight-cubed.com- Hide quoted text -
- Show quoted text -
Yeah, I had the wrong doc. Thanks!
But I never figured out how to change the timeout. The doc never
explains the input_parameter_list, the P5 argument used with
IO$_SETMODE or IO$_SETCHAR.
I gave up. I am living with the long timeout on initial socket
connects. For reads, I am using IO$M_NOWAIT and a busy loop.
.
- References:
- RE: setting socket connect timeout
- From: Dan Allen
- Re: setting socket connect timeout
- From: tadamsmar
- Re: setting socket connect timeout
- From: Jim Duff
- RE: setting socket connect timeout
- Prev by Date: Re: Is VMS losing the Financial Sector, also?
- Next by Date: Re: Apache's ActiveMQ on VMS
- Previous by thread: Re: setting socket connect timeout
- Next by thread: RE: setting socket connect timeout
- Index(es):
Relevant Pages
|