<div dir="ltr">Hello!<div><br></div><div>I'm new to both Swift and OpenStack, I hope you can help me.</div><div><br></div><div>Considering statsd is enabled, each time something is logged, a new socket is being opened.</div>

<div><br></div><div>At least, this is what I understood from the implementation and usage of StatsdClient at:</div><div><div>- swift/common/utils.py<br></div><div>- swift/common/middleware/proxy_logging.py</div></div><div>

<br></div><div>If this analysis is correct: is there any special reason for this behavior (open a new socket each request)?</div><div><br></div><div>We could significantly improve performance reusing the same socket.</div>

<div><br></div><div>Would you be interested in a patch in this regard?</div><div><br></div><div>Best,</div><div>-- <br>Tatiana Al-Chueyr
</div></div>