(it seems that 'writeev' has the same issue.) https://github.com/nidium/libapenetwork/blob/master/src/ape_socket.c#L665-L747