[PATCH] [rfc] Network.Socket: Add recvBuf

Simon Horman horms at verge.net.au
Sun Jan 9 23:48:22 CET 2011


On Sun, Jan 09, 2011 at 02:37:12PM +0100, Johan Tibell wrote:
> Hi Simon,
> 
> 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.

Thanks. I'm working off HEAD :-)



More information about the Libraries mailing list