From 5b5d45d155b39f38642cc7693ea2034c5931328a Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Sun, 21 Apr 2024 13:00:29 +0200 Subject: [PATCH] Remove a couple of silly-goose tags --- .../2015-06-19-handling-tcp-connections-in-elixir/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/posts/2015-06-19-handling-tcp-connections-in-elixir/index.md b/content/posts/2015-06-19-handling-tcp-connections-in-elixir/index.md index d95cfc0..a6c4a99 100644 --- a/content/posts/2015-06-19-handling-tcp-connections-in-elixir/index.md +++ b/content/posts/2015-06-19-handling-tcp-connections-in-elixir/index.md @@ -177,7 +177,6 @@ defmodule Redis do end end ``` -{% endraw %} ## Messages on demand @@ -208,7 +207,7 @@ Lots of real-world libraries use the pattern I talked about: for example, [eredi We happily ignored an annoying thing to deal with throughout this article: error handling! -We'll keep happily ignoring a subset of the errors that can happen, for example, an empty client queue (which fails the {% raw %}`{{:value, val}, new_queue}`{% endraw %} pattern match) or an incomplete message from the TCP socket. However, a common set of errors that can happen when dealing with TCP connections are, well, TCP errors like dropped connections or timeouts. +We'll keep happily ignoring a subset of the errors that can happen, for example, an empty client queue (which fails the `{{:value, val}, new_queue}` pattern match) or an incomplete message from the TCP socket. However, a common set of errors that can happen when dealing with TCP connections are, well, TCP errors like dropped connections or timeouts. We could try to handle this kind of errors ourselves, but, luckily for us, Elixir core team member James Fish (a.k.a. [fishcakez][fishcakez]) did most of the work in its awesome library [connection][connection]. While this library is quite young at the time of writing, it's already being used in the [MongoDB driver][mongodb] I mentioned before and in the OrientDB driver I'm working on.