We used to allocate memory on the stack when reading from a file descriptor and copied the result into an instance of UnixSocketRawData. This patch - cleans up the interface of UnixSocketRawData, - removes the large stack allocation (64KiB), and - removes the unnecessary memcpy. Other memcpys for sending data have been moved into the constructor of UnixSocketRawData.
22 KiB
22 KiB