Re: Problem with UCX QIOW IO$_SETMODE
From: Valentin Likoum (me_at_privacy.net)
Date: 10/20/03
- Previous message: Larry Kilgallen: "Re: What is ACME_SERVER?"
- In reply to: Carl Perkins: "Re: Problem with UCX QIOW IO$_SETMODE"
- Next in thread: Ferry Bolhar: "Re: Problem with UCX QIOW IO$_SETMODE"
- Reply: Ferry Bolhar: "Re: Problem with UCX QIOW IO$_SETMODE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 20 Oct 2003 10:08:17 +0500
Carl Perkins wrote:
> "Ferry Bolhar" <bol@adv.magwien.gv.at> writes...
[snip]
> }However, when running the image, the second (and further) times, the iosb of
> }the QIOW IO$_SETMODE request, which is used to set the socket parameters,
> }returns in iosb[0] the return code SS$_DUPLNAM. According the documentation,
> }this means that a process tries to listen on a TCP port which another
> }process already is listening on. However, this isn't the case here - the
> }image has terminated and the bg: device which represented the listening port
> }(can be shown with UCX SHOW DEVICE) disappeared.
> }However, after waiting for a minute, the QIOW call succeeds.
[snip]
> ** Set Socket Options:
> **
> ** Inform the network driver that we want to reuse this port address right
> ** away.
> **
> ** There might be some old messages still on the network destined for the
> ** last server that used this port. To avoid delivering these straggling
> ** messages to the wrong server the network imposes a timeout that must
> ** expire between the time a server finishes using a port and that port can be
> ** can be assigned to another server. The following call will override this.
> **
> ** The benifit of overriding this time out is, we do not have to wait before
> ** we can reuse the port address. The down side is, we might get messages
> ** that were not ment for this server.
> **
> */
>
> After that is the setup for a QIO call that uses the TCPIP$M_REUSEADDR item.
>
> --- Carl
Hmm.. I have been using this option since UCX 4.2 and now
on TCPIP 5.1, but it seems never happens to work. Option is
definitly set accordinly to UCX SHOW DEVICE/FULL output. But
I always get SS$_DUPLNAM after server restart if I don't
disconnect all the clients before server shutdown.
Other options enabled on server' socket are KEEPALIVE and
FDPX_CLOSE.
-- Best regards, Valentin valentin.likoum at ncc dot volga dot ru
- Previous message: Larry Kilgallen: "Re: What is ACME_SERVER?"
- In reply to: Carl Perkins: "Re: Problem with UCX QIOW IO$_SETMODE"
- Next in thread: Ferry Bolhar: "Re: Problem with UCX QIOW IO$_SETMODE"
- Reply: Ferry Bolhar: "Re: Problem with UCX QIOW IO$_SETMODE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|