On 02/12/2015 01:14 AM, Yichun Zhang (agentzh) wrote:
> Hello!
>
> On Wed, Feb 11, 2015 at 4:00 PM, Brian Akins wrote:
>> What would be "kept alive" in a UDP socket? Some memory allocations, etc?
>>
>
> More importantly, it can save the (expensive) socket(), ioctl(), and
> close() syscalls for the UDP/datagram socket upon every request.
So I take it that I currently can't do that. What I'm wondering about is
why the socket gets closed in the first place, even though the variable
doesn't go out of scope. What is the reasoning behind this?
Thanks, Arne
>
> Regards,
> -agentzh
>