Commit graph

58 commits

Author SHA1 Message Date
Jordan Bracco
debcadf495 API cleanup, C improvements, docs, ... 2020-06-16 11:55:04 +02:00
Jordan Bracco
34c2d22e77 Ack 2020-06-15 22:53:00 +02:00
Jordan Bracco
b5777bf9e8 Majic. 2020-06-15 22:23:14 +02:00
Jordan Bracco
52f6aa7281 Merge branch 'single-api' into develop 2020-06-15 18:19:30 +02:00
Jordan Bracco
60fde9c3ce Unified API: GenMagic.perform/2,3 2020-06-15 18:19:06 +02:00
Jordan Bracco
89d97f9284 Merge branch 'ei' into develop 2020-06-15 18:18:53 +02:00
Jordan Bracco
8c58ecd057 Cleanup 2020-06-15 18:16:42 +02:00
Jordan Bracco
6186331fe8 Format & delete .builds/ 2020-06-15 18:03:45 +02:00
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
7f863a37f8 Unified API: GenMagic.perform/2,3 2020-06-15 13:57:46 +02:00
Jordan Bracco
9a70442ac2 Shorten a comment to make Credo happy 2020-06-14 19:10:50 +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
001151e7d9 Ensure we always close the port 2020-06-14 18:54:04 +02:00
Jordan Bracco
6672860b19 Build custom database in test 2020-06-14 18:39:46 +02:00
Jordan Bracco
1d949c82ca Safeguard against ei_* failures 2020-06-14 18:21:17 +02:00
Jordan Bracco
cca911b1b7 Merge branch 'ei' into develop 2020-06-03 17:19:30 +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
b788ef982f Include arpa/inet.h 2020-06-02 15:08:26 +02:00
Jordan Bracco
eafdc2ea15 Log on randomly failing CI tets 2020-05-14 20:58:23 +02:00
Jordan Bracco
0a444f2e48 Merge branch 'ei' into develop 2020-05-14 20:54:29 +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
02776a3fad Merge branch 'ei' into develop 2020-05-14 15:15:02 +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
4245994dd0 Merge branch 'ei' into develop 2020-05-14 00:38:06 +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
14283ff04c Merge branch 'nimblepool' into develop 2020-05-13 22:37:02 +02:00
Jordan Bracco
eec13a033b Pool: format & doc 2020-05-13 22:36:48 +02:00
Jordan Bracco
8626ea02fd Merge branch 'ei' into develop 2020-05-13 22:31:58 +02:00
Jordan Bracco
a1236b7ea7 Merge branch 'ei' into develop 2020-05-13 22:31:29 +02:00
Jordan Bracco
00c94d88d6 Implement bytes 2020-05-13 22:30:59 +02:00
Jordan Bracco
4e23bc9ff9 Implement bytes 2020-05-13 22:09:23 +02:00
Jordan Bracco
6134300c6c Merge branch 'nimblepool' into develop 2020-05-13 21:34:50 +02:00
Jordan Bracco
dfd2158557 Pool: format & doc 2020-05-13 21:34:31 +02:00
Jordan Bracco
a5ec7b5e5d Makefile: oof, big oof 2020-05-13 21:25:46 +02:00
Jordan Bracco
6c0a8d7034 makefile changes 2020-05-13 20:46:45 +02:00
Jordan Bracco
5ca893aab4 Merge remote-tracking branch 'kleidukos/makefile-rework' into develop 2020-05-13 20:29:43 +02:00
Jordan Bracco
fcab217ea0 Merge branch 'nimblepool' into develop 2020-05-13 20:09:39 +02:00
Jordan Bracco
77dfe98011 NimblePool implementation WIP 2020-05-13 20:08:36 +02:00
Jordan Bracco
4d15af6e90 Merge branch 'nimblepool' into develop 2020-05-13 19:40:25 +02:00