Second Round CURL Wrapper Review
Vladimir Panteleev
vladimir at thecybershadow.net
Mon Dec 5 01:26:46 PST 2011
On Sun, 04 Dec 2011 22:52:13 +0200, Jonas Drewsen <jdrewsen at nospam.com>
wrote:
> The same applies here because all it comes down to in the end is the
> sizes of buffers.
>
> The async ranges simply allows you to fill a specified number buffers in
> another thread async. Most OSes also have socket buffers that serves the
> same purpose but async ranges allows you to specify the buffer size
> without being privileged.
>
> The standard max read buffer size for a tcp connection on the ubuntu I
> have is set to 112640 which is doubled by the kernel to 225280 bytes. A
> developer may very well like buffers larger that this without needing to
> set privileged kernel variables.
I still don't see how this could ever be useful in practice without the
ability to poll for whether data is available. Is it possible to write two
short programs that use the synchronous and asynchronous APIs in a way
that makes a difference?
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list