private function failCryptoNegotiation($socket, $ip)
{
$this->clientCount--;
$net = @\inet_pton($ip);
if (isset($net[4])) {
$net = substr($net, 0, 7);
}
$this->clientsPerIP[$net]--;
$socketId = (int) $socket;
list($watcherId) = $this->pendingTlsStreams[$socketId];
\Amp\cancel($watcherId);
unset($this->pendingTlsStreams[$socketId]);
@fclose($socket);
}