Skip to content

Instantly share code, notes, and snippets.

View lpgauth's full-sized avatar
😄
busy building cool stuff

Louis-Philippe Gauthier lpgauth

😄
busy building cool stuff
View GitHub Profile
@rlipscombe
rlipscombe / gist:c8f92f47fe1e0ecba757
Created August 17, 2015 16:30
ssl:setopts (keepalive)
%% from /usr/include/netinet/in.h (Linux and OS X)
-define(IPPROTO_TCP, 6).
%% from /usr/include/netinet/tcp.h (Linux)
-define(TCP_MAXSEG, 2).
-define(TCP_KEEPIDLE, 4).
-define(TCP_KEEPINTVL, 5).
-define(TCP_KEEPCNT, 6).
%% @doc If you pass multiple raw options to ssl:listen, it appears to drop all
@seancribbs
seancribbs / chicagoerlang-eunit.org
Last active February 14, 2024 17:30
Presentation source, code examples and exercises from "Getting Started with eunit", Chicago Erlang March 2014

Getting Started with eunit