Skip to content

[scenario] Anticipating port conflicts with a local active server queue on a shared computer #26

Closed Answered by shikokuchuo
wlandau asked this question in Q&A
Discussion options

You must be logged in to vote

There is no way for both Bob and Alice to listen on the same port.

If they run nodes directly they will get:

Bob:

daemons("tcp://192.168.0.2:50000") 
#> [1] "remote"

Alice:

daemons("tcp://192.168.0.2:50000") 
#> Error in socket(protocol = "req", listen = value) : 10 | Address in use

If they add the nodes argument, they don't see the above error as it is the background process that listens.

However for Alice, her background queue process errors and exits. The easiest way of detecting this is simply querying daemons(), which will show 0 connections instead of 1.

Replies: 2 comments 19 replies

Comment options

You must be logged in to vote
1 reply
@shikokuchuo
Comment options

Comment options

You must be logged in to vote
18 replies
@wlandau
Comment options

@wlandau
Comment options

@shikokuchuo
Comment options

@mschubert
Comment options

@shikokuchuo
Comment options

Answer selected by shikokuchuo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants