[PATCH] [rfc] Network.Socket: Add recvBuf
johan.tibell at gmail.com
Sun Jan 9 14:37:12 CET 2011
On Fri, Jan 7, 2011 at 2:08 AM, Simon Horman <horms at verge.net.au> wrote:
> recently I have been looking into a latency-gap between the
> C and Haskell implementations of a TCP-echo
> One issue that has come up is that recvBufFrom calls getpeername() for each
> successful recvfrom(). This is unnecessary in the context of the code that
> I am working with as the result is discarded.
> My proposed solution to this is to implement recvBuf.
> I apologise in advance for my rudimentary Haskell skills.
Thanks for the patch. I've review and applied it.
I'm working on a big overhaul to network so you will have to wait a
few weeks to see your patch in a released version of network. If you
need it right now I suggest working of HEAD until then.
More information about the Libraries