Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2018 15:39:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 210726] tcp connect() can return invalid EADDRINUSE
Message-ID:  <bug-210726-7501-ICL7T4Dtel@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210726-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210726-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210726

--- Comment #11 from David King <king.c.david@googlemail.com> ---
Not a script as such, however, to reproduce i create 2 jails with same IP,

reduce the ephemeral port range to increase the probability of hitting the
issue
net.inet.ip.portrange.hifirst: 51000
net.inet.ip.portrange.hilast: 5200

and run the following script in each jail and compare the logs, i'm sure th=
ere
is an easy way to do this with shell, but I couldn't get the low level error
with curl

#!/usr/local/bin/python

import requests
import logging
import threading

logging.basicConfig(filename=3D'/tmp/python.log',level=3Dlogging.INFO)

def makerequests():
  try:
    r =3D requests.get(<% choose a local URL %>)
  except Exception as e:
    logging.info(e)

for i in range(0,10000):
  t =3D threading.Thread(target=3Dmakerequests)
  t.start()

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210726-7501-ICL7T4Dtel>