summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-10-01 16:24:47 +0000
committerRichard Maw <richard.maw@gmail.com>2014-10-01 16:24:47 +0000
commit01060c72158893863162acec85f576c442fc49ff (patch)
tree577ba011a02f11f8b8343647b9af6b5cc4a793b4 /setup.py
parentce2de6bd60db874f26502350a75de10faa1bf220 (diff)
downloadmorph-01060c72158893863162acec85f576c442fc49ff.tar.gz
distbuild: allow daemons to bind to ephemeral ports
You can bind to an ephemeral port by passing 0 as the port number. To work out which port you actually got, you need to call getsockname(). To facilitate being able to spawn multiple copies of the daemons for testing environments, you can pass a -file option, which will make the daemon write which port it actually bound to. If this path is a fifo, reading from it in the spawner process will allow synchronisation of only spawning services that require that port to be ready after it is.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions