I’m studying networking in C/C++ so sockets.
For example I’m now using firefox and I can load both 10KB pages and 30MB pages. So I assume that all the data I get from web server is written into some buffer.. but is that buffer fixed size or maybe based on Content-size?
I’m studying networking in C/C++ so sockets. For example I’m now using firefox and
Share
The data is actually flowing from buffer to buffer to buffer and eventually winding up in memory. The server reads from disk through a disk buffer and writes into a TCP network buffer which its kernel empties into a network interface buffer. The data travels over the network from buffer to buffer as it crosses various network links. Eventually, it winds up in the TCP connection buffer of your operating system which your browser keeps emptying into a buffer in main memory. These buffers are all various different sizes, some fixed, some variable.