Re: SIGHUP on connect

2020-10-30 Thread Michael J. Baars
Here, think I got it :) Just run 'make; make run' Thank you for your help. On Thu, 2020-10-29 at 21:48 +0100, Bernd Petrovitsch wrote: > Hi all! > > On 29/10/2020 14:10, Michael J. Baars wrote: > [...] > > According to manual page socket(7), SO_REUSEADDR allows for local addresses > > to be r

Re: SIGHUP on connect

2020-10-29 Thread Bernd Petrovitsch
Hi all! On 29/10/2020 14:10, Michael J. Baars wrote: [...] > According to manual page socket(7), SO_REUSEADDR allows for local addresses > to be reused for binding. I've tested this socket option with the WAN > address, it > appears the problem is solved for both local and non-local connections

Re: SIGHUP on connect

2020-10-29 Thread Michael J. Baars
Hi Bernd, According to manual page socket(7), SO_REUSEADDR allows for local addresses to be reused for binding. I've tested this socket option with the WAN address, it appears the problem is solved for both local and non-local connections. I also found the the SO_LINGER socket option to be usefu

Re: SIGHUP on connect

2020-10-29 Thread Michael J. Baars
On Mon, 2020-10-26 at 17:12 +, Bernd Petrovitsch wrote: > Hi all! > > On 25/10/2020 16:11, Michael J. Baars wrote: > [...] > > I've been writing a simple client and server for cluster computing this > > weekend. At first everything appeared to work just fine, but soon enough I > > found > >

Re: SIGHUP on connect

2020-10-29 Thread Michael J. Baars
On Mon, 2020-10-26 at 17:12 +, Bernd Petrovitsch wrote: > Hi all! > > On 25/10/2020 16:11, Michael J. Baars wrote: > [...] > > I've been writing a simple client and server for cluster computing this > > weekend. At first everything appeared to work just fine, but soon enough I > > found > >

Re: SIGHUP on connect

2020-10-26 Thread Bernd Petrovitsch
Hi all! On 25/10/2020 16:11, Michael J. Baars wrote: [...] > I've been writing a simple client and server for cluster computing this > weekend. At first everything appeared to work just fine, but soon enough I > found some > inexplicable bind errors. I've tried to make sure that the client close

SIGHUP on connect

2020-10-25 Thread Michael J. Baars
Hi, I've been writing a simple client and server for cluster computing this weekend. At first everything appeared to work just fine, but soon enough I found some inexplicable bind errors. I've tried to make sure that the client closes it's sockets before the server closes it's sockets, to preve