forked from ninenines/ranch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8f31f3
commit 1cb2e79
Showing
10 changed files
with
116 additions
and
70 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Erlang CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- openriak-3.2 | ||
pull_request: | ||
branches: | ||
- openriak-3.2 | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
name: Test on ${{ matrix.os }} with OTP ${{ matrix.otp }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
otp: [24, 26] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: lukka/get-cmake@latest | ||
- uses: actions/checkout@v4 | ||
- name: Install Erlang/OTP | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{ matrix.otp }} | ||
- name: Compile | ||
run: ./rebar3 compile | ||
- name: Run xref and dialyzer | ||
run: ./rebar3 do xref, dialyzer | ||
- name: Run eunit | ||
run: ./rebar3 as gha do eunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ examples/*/*.d | |
examples/*/_rel | ||
logs | ||
test/*.beam | ||
_build | ||
rebar.lock |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Ranch | ||
|
||
![Ranch OpenRiak Status](https://github.com/OpenRiak/ranch/actions/workflows/erlang.yml/badge.svg?branch=openriak-3.2) | ||
|
||
Ranch is a socket acceptor pool for TCP protocols. | ||
|
||
## Goals | ||
|
||
Ranch aims to provide everything you need to accept TCP connections with | ||
a *small* code base and *low latency* while being easy to use directly | ||
as an application or to *embed* into your own. | ||
|
||
Ranch provides a *modular* design, letting you choose which transport | ||
and protocol are going to be used for a particular listener. Listeners | ||
accept and manage connections on one port, and include facilities to | ||
limit the number of *concurrent* connections. Connections are sorted | ||
into *pools*, each pool having a different configurable limit. | ||
|
||
Ranch also allows you to *upgrade* the acceptor pool without having | ||
to close any of the currently opened sockets. | ||
|
||
## Online documentation | ||
|
||
- https://ninenines.eu/docs/en/ranch/2.1/guide[User guide] | ||
- https://ninenines.eu/docs/en/ranch/2.1/manual[Function reference] | ||
|
||
## Offline documentation | ||
|
||
- While still online, run `make docs` | ||
- User guide available in `doc/` in PDF and HTML formats | ||
- Function reference man pages available in `doc/man3/` and `doc/man7/` | ||
- Run `make install-docs` to install man pages on your system | ||
- Full documentation in Asciidoc available in `doc/src/` | ||
- Examples available in `examples/` | ||
|
||
## Getting help | ||
|
||
- https://github.com/ninenines/ranch/issues[Issues tracker] | ||
- https://ninenines.eu/services[Commercial Support] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{minimum_otp_vsn, "22.0"}. | ||
|
||
{erl_opts, [warnings_as_errors, debug_info, warn_untyped_record]}. | ||
|
||
{xref_checks, [ | ||
undefined_function_calls, | ||
undefined_functions, | ||
locals_not_used, | ||
deprecated_function_calls, | ||
deprecated_functions | ||
]}. | ||
|
||
{eunit_opts, [verbose]}. | ||
|
||
{profiles, [ | ||
{gha, [{erl_opts, [{d, 'GITHUBEXCLUDE'}]}]} | ||
]}. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters