←back to thread

1764 points fatihky | 1 comments | | HN request time: 0.201s | source
1. jussij ◴[] No.12701585[source]
If this is true, then it's not surprising as usually the person asking the question is not up to speed on the details of the question being asked.

I recall a question, which was how do you stop a socket from overflowing?

I said what do you mean? If you write to a socket and it fails to accept the write it will fail. Sockets do not have any option to stop this.

Naturally I failed the question yet I asked for the correct answer and was told the answer is simple, just use a cache.

Nice answer, excepts sockets do not have caches.

Correct Answer: Add a cache to the socket to stop them failing but that was not the question.

While that answer is obvious, it was not the question asked!!