serve(): Close the client socket before closing the server socket
authorFabian Keil <fk@fabiankeil.de>
Tue, 22 Sep 2020 08:31:20 +0000 (10:31 +0200)
committerFabian Keil <fk@fabiankeil.de>
Tue, 22 Sep 2020 14:22:04 +0000 (16:22 +0200)
commit0c82acb57e75e9a1463b4b6b56e7709752c63f89
tree11f0ac0bf159ac0f4cc293b184c8e5c909293a3d
parentb5ce79b11f3159a17e6c519b1eb95b50d3fac350
serve(): Close the client socket before closing the server socket

When using OpenSSL, closing the server socket sometimes
takes a long time so make sure this does not delay the
closing of the client socket.

While this is a work around, it doesn't hurt and
can be kept once the OpenSSL issue is fixed in
follow-up commits.
jcc.c