HTTP/1.1 is a delightfully simple protocol, if you ignore most of it. They're both out of scope, but it's nice to know they've thought about it. To make sure someone doesn't ruin it for everyone: these include congestionĬontrol (to protect the network) and flow control (to protect the server), and There's checksums and retransmission involved.īecause there's a lot of peers and, thus, a lot of packets, there's mechanisms You get in-order, reliable delivery - by which I mean Once that's done, you get a bidirectional socket, from which you can read bytesįrom and write bytes to. Usually does) or listen for and accept incoming TCP connections (which is what a I briefly considered taking you on a tour of Ethernet and IP, but it turns outįor our purposes, the internet really is a series ofĮvery "peer" gets an IP address (no, we're not talking about NAT), and you canĮstablish an outbound TCP connections to another peer (which is what a client I've found at work - but it involves HTTP/2, and so, we must start at the (because you almost never have client logging), and the server logs don't haveĪnything, because they hate you, yes, you personally, what else are you supposedĪs is often the case, this article is motivated by a particularly gnarly bug So of course, when something is misbehaving, and you don't have client logs, Spending so much on syscalls? Does it really cost that much to do TLS? I It's consuming CPU cycles for reasons that seem dubious at best – why is it It's just sitting there, in the middle of everything, taunting you. There and add instrumentation until either you, or the problem, meets theirīut when you write a proxy, you can trust no one.īug reports usually come in the form of "So. Or, should trust not suffice, you can always get in Usually with HTTP, you control at least the client or the server. If my personal life is relatively devoid of thinking about HTTP, the same cannotīe said of my professional life, wherein I maintain an HTTP/S/2 proxy. "Not having to think about it" is certainly a measure of success for a given Even if you're reading this from an RSS reader or something. If you're reading this article, there's a solid chance it was delivered to you HTTP does a pretty good job staying out of everyone's way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |