Commit graph

23 commits

Author SHA1 Message Date
Jordan Bracco
011d1150e3 Remove use of arguments and load DB from messages
Also:

- Adds `GenMagic.Server.recycle` and `GenMagic.Server.reload` which
allows to restart/reload the apprentice server with a new set of
databases,
- Fix compilation on musl based distributions (was caused by the args
code),
- Handle timeouts better in `GenMagic.Server`
- Force the port to close in recycling if the graceful stop timeouts
2020-06-15 17:57:40 +02:00
Jordan Bracco
08ebe0575b Shorten a comment to make Credo happy 2020-06-14 19:10:41 +02:00
Jordan Bracco
d358007c26 Ensure we always close the port 2020-06-14 18:56:18 +02:00
Jordan Bracco
22024701a5 Build custom database in test 2020-06-14 18:56:01 +02:00
Jordan Bracco
87415c4854 Safeguard against ei_* failures 2020-06-14 18:55:07 +02:00
Jordan Bracco
c7a4683cd6 Add builds for sr.ht and multi platform tests 2020-06-03 16:24:32 +02:00
Jordan Bracco
69212838e4 Compile test db 2020-06-03 16:19:25 +02:00
Jordan Bracco
e6656ecee8 Include arpa/inet.h 2020-06-03 15:26:02 +02:00
Jordan Bracco
8dab8223d7 Minor specs/... fixes 2020-05-14 20:53:53 +02:00
Jordan Bracco
911a9eab1f Improve behaviour with too long commands/filenames. 2020-05-14 18:53:12 +02:00
Jordan Bracco
04f393e7d1 apprentice: Comments and remove dead code 2020-05-14 16:10:26 +02:00
Jordan Bracco
d31187fcef Up-to-date mirror of magic/file is https://github.com/file/file 2020-05-14 15:41:09 +02:00
Jordan Bracco
15560bccda apprentice: fix read_cmd len read.
Apparently the [example on erlang.org](https://erlang.org/doc/tutorial/erl_interface.html)
is wrong for specific lengths of packets...
2020-05-14 14:57:35 +02:00
Jordan Bracco
8231a31562 Improved Makefile
Originally by @Kleidukos on evadne/gen_magic#11
2020-05-14 00:40:39 +02:00
Jordan Bracco
28f2d53f06 apprentice: check len before strncmp 2020-05-14 00:37:05 +02:00
Jordan Bracco
327afed608 Server: hibernate between requests 2020-05-14 00:36:57 +02:00
Jordan Bracco
654eb6b67f Implement bytes 2020-05-13 22:44:12 +02:00
Jordan Bracco
257bf51bb4 Make credo happy 2020-05-13 19:39:27 +02:00
Jordan Bracco
d40dff738a Max path size 2020-05-13 19:27:59 +02:00
Jordan Bracco
64ded4da4c Dry send 2020-05-13 19:21:23 +02:00
Jordan Bracco
4574d13e55 clang format 2020-05-13 19:13:46 +02:00
Jordan Bracco
443ce0501f EI wip 2020-05-13 18:54:45 +02:00
Evadne Wu
0bc39d9ad1 Initial Commit (v1.0.0)
- History for v0.20.83 and previous versions is moved to archive/v0.20.83
2020-05-04 05:04:38 +01:00