I’m not sure it’s the same problem, but some time ago I tried without success to find a function in Sockets to read UDP packets which didn’t allocate each time it received data. All the receive functions seem to allocate a new array for each set of data received. See How to pass a buffer to a C callback function? . I did manage to hack a recv_into! function but in the end I wrote the data access in C++ and called it via CxxWrap.
I did try creating a feature request https://github.com/issues/created?issue=JuliaLang|julia|57029