From: Andre Noll Date: Sun, 6 Aug 2017 20:50:15 +0000 (+0200) Subject: server: Perform hostname lookup in client process. X-Git-Tag: v0.5.8~1 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=5924e7281692044588e6df713c5d6c694ddd69f1;hp=5924e7281692044588e6df713c5d6c694ddd69f1;p=paraslash.git server: Perform hostname lookup in client process. When a connection arrives at the TCP command socket, the server process looks up the remote name before it forks the child process. This is bad because the server process can not afford to sleep, but name lookup may take some time, for example if a DNS server is currently unavailable. We may as well look up the hostname after the fork in the child process, where blocking operations are not a problem. ---