[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49218] pbuf_clen() overflow as a result of tcp_write
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #49218] pbuf_clen() overflow as a result of tcp_write concatenation |
Date: |
Fri, 30 Sep 2016 10:22:15 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 |
Follow-up Comment #5, bug #49218 (project lwip):
> As far as I can tell, there is no way to prevent creating that
> many reference pbufs if an application decides to do "for(;;)
> write(fd,"y\n",2);"
There is: socket writes use TCP_WRITE_FLAG_COPY.
And that was my point: I don't expect you have a scatter-gather-MAC that
supports TX frames with that many chunks. Being like that, you probably end up
copying all bytes per CPU anyway. Thus, I don't see the advantage of doing it
with ref pbufs. On the contrary, it's probably less performant.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49218>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/