jeudi 13 août 2015

C++: boost::asio : what's the maximum buffer size I can use for tcp sockets?

In this ssl client example, the default buffer size is 1K=1024 bytes. Are there any practical limitations on how much I could increase that? Would it work fine with no unforeseeable problems if I set the buffer to something like a 100 MB?

Notice that the buffer is not just the reserved size... It is also passed to read() and write(). At what size would these functions face problems due to size limitations? Does such a limitation exist? I can imagine that there is at least a defined limit for how much I can write().



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire