Re: Problem with UCX QIOW IO$_SETMODE

From: Valentin Likoum (me_at_privacy.net)
Date: 10/20/03

  • Next message: Dave Weatherall: "Re: XNET?"
    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
    

  • Next message: Dave Weatherall: "Re: XNET?"

    Relevant Pages

    • Re: Apple and EMI
      ... If you snip relevant context there is no point in continuing. ... Being paid for worthless opinions doesn't make those opinions true. ... unless you establish it under double blind listening conditions. ... But the point is that I believed that 256kbit/s AAC compression would be ...
      (uk.comp.sys.mac)
    • Re: Att:Os
      ... Listening to the track now and it ... air guitar when the riff kicks in heavier halfway through the track. ... the album, I've decided it joins Radiohead's The Bends as one of my ...
      (uk.sport.football)
    • Re: Tolkien and iPod
      ... [snip excellent summary] ... bookmarking option to keep your place in the tracks/chapters you haven't ... listening to more audiobooks this way. ... Tolkien audiobooks yet, so I need to go shopping. ...
      (rec.arts.books.tolkien)
    • Re: SACD - DVD-a other stuff
      ... Arny Krueger wrote: ... >> snip> ... For LP listening good equipment is paramount. ... Espana, Maazel conducting "The rite of spring on "London",.Van ...
      (rec.audio.opinion)