Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Typing a URL: The Kernel's Version

One line in a trace of curl, sending an order to Checkout over HTTPS, looks like a failure:

Output:

connect(5, {sa_family=AF_INET, sin_port=htons(8443), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)

The connect system call returned an error, EINPROGRESS, and yet the order went through a few milliseconds later. The error is not a failure: it is the kernel saying that it has started the connection and will finish it without the program waiting.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content