Project

General

Profile

Actions

Task #1367

closed

Change initialization of unix socket

Added by Alex Afanasyev about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Faces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Currently, NFD checks if the unix socket file exists and if so simply deletes the file. This causes problems when NFD is run twice (i.e., the second attempt will fail because it will not be able to bind to tcp/udp socket, but will disable any future communication via unix socket).

This task is to change this behavior. Instead of just deleting existing file, the initialization procedure should:

  1. if UNIX socket doesn’t exist, goto step 4
  2. connect to the UNIX socket, if connection succeeds (indicating another process is listening on the same socket), raise an error and abort these steps
  3. delete the UNIX socket
  4. start listening

Related issues 1 (0 open1 closed)

Has duplicate NFD - Bug #1360: producers cannot connect to running nfd if by mistake another instance of nfd is started. ClosedDavide Pesavento03/17/2014

Actions
Actions

Also available in: Atom PDF