<div dir="ltr">Hi,<div><br></div><div>I have noticed an issue with lib-bsd that the legacy stack does not have.</div><div><br></div><div>If have a loop that does</div><div><br></div><div>for (;;)</div><div>{</div><div>  wait(100) // milliseconds</div><div>  socket() // allocate</div><div>  close() // free</div><div>}</div><div><div><br></div><div>then i can see the socket numbers allocated upwards, but eventually the get ENOBUFS from socket(),.. allocating more sockets just delays the problem occurring.</div><div><br></div><div>It seems like this is some lazy freeing or complex system designed for high loading systems to make close() faster, but on an embedded system its malfunctioning.</div><div><br></div><div>is there some lib-bsd function that can force a 'flush' to prevent this ?</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br></div></div></div>