3 ms·
TCP is a general stream oriented protocol that must cover a variety of use cases and situations. That's why there are so many OS knobs to tweak it if you have
by tomohawk 8y ago
TCP is a general stream oriented protocol that must cover a variety of use cases and situations. That's why there are so many OS knobs to tweak it if you have a special use.
Since HTTP is the use case here, it is possible to create a protocol that is optimized for it, whereas TCP cannot be optimized specifically for HTTP.
Source: I've implemented a reliable, stream oriented protocol over UDP which has been in use for many years.