lkml.org 
[lkml]   [2020]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: SIGHUP on connect
From
Date
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 closes it's sockets before the server closes it's sockets, to prevent linger, but trying did

Which were exactly?
English/original text pls ...

And The close() (and shutdown() syscalls, respectively) don't avoid
the FIN_WAIT2 timeout on a closed socket.
Just set the SO_REUSEADDR socket option on the listening socket.

> not help. Now I think I found the problem.

Then solve it.

> Please do have a look at the code. It looks like the SIGHUP is sent to the server not on close or exit, but on the connect instead.

Too lazy to save and uncompress the file ...

MfG,
Bernd
--
There is no cloud, just other people computers.
-- https://static.fsf.org/nosvn/stickers/thereisnocloud.svg
[unhandled content-type:application/pgp-keys]
\
 
 \ /
  Last update: 2020-10-26 18:14    [W:1.546 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site