Commit Graph

409 Commits

Author SHA1 Message Date
Joe Bryan
61afdf9309 fixes typos in http.c 2019-01-11 11:06:20 -05:00
Joe Bryan
71d27f99f0 refactors _proxy_ward_start() and _proxy_ward_plan() 2019-01-10 20:51:14 -05:00
Joe Bryan
5c0a05011a disables proxy printf on u3_ward auth failure 2019-01-10 20:20:42 -05:00
Joe Bryan
280ff87251 refactors proxy domain parsing and validation 2019-01-10 15:11:05 -05:00
Joe Bryan
a20508b49d hardcodes tcp proxy domain 2019-01-10 15:03:45 -05:00
Joe Bryan
9f6300b79b refactors and comments u3_http_ef_that() 2019-01-10 15:03:45 -05:00
Joe Bryan
4c92b65d1f refactors u3_ward/u3_warc lifecycle, preventing potential leaks 2019-01-10 13:44:46 -05:00
Joe Bryan
671dfa6647 updates terminal read callback to shutdown gracefully on EOF 2019-01-10 02:39:05 -05:00
Joe Bryan
ef8cb85ad4
Merge pull request #1123 from urbit/murmug
switch u3r_mug from FNV to Murmur3
2019-01-09 01:47:47 -05:00
Joe Bryan
638242c8d4 Merge branch 'release-candidate' into passcode-eof
* release-candidate:
  Abbreviate cc
  Sort deps
  Fix build on OSX with MacPorts
  meson cleanup
  Try removing a bunch of dependencies
  Clean up allocator defs
2019-01-09 00:09:48 -05:00
Joe Bryan
8807423b01 refactors u3r_mug* and some call sites 2019-01-08 22:45:02 -05:00
Jōshin
67c0b7b39b Clean up allocator defs
- Condense the allocator section in defs.h and make it match the
  surrounding style.

- Use real calloc in c3_calloc. Some guy on the internet says
  calloc can be faster than malloc since the OS may not actually
  need to call memset.

- Replace calloc calls in vere code with c3_calloc.

Note that I left the c3_calloc definition as-is (i.e., not taking
a count argument). I was going to change it, but it seems like
count is 1 at all call sites. If it's ever used with count != 1,
I'd be in support of changing it, fwiw.
2019-01-02 11:23:06 -08:00
Joe Bryan
0f0f1db51d updates passcode entry to handle EOF, refactors 2018-12-28 00:21:17 -05:00
Jōshin
ceba869a91 Eliminate extra c3_rand call 2018-12-27 17:30:18 -08:00
Jōshin
fbd5d4e2ad Capture errors within uH / uL 2018-12-27 17:22:50 -08:00
Jōshin
c7d2256e03 Use c3_fpurge 2018-12-27 17:22:46 -08:00
Fang
a09e2b7818 Update comments in dawn to reflect changes in urbit/arvo#958 2018-12-21 18:00:48 +01:00
Fang
20adb8a4f7
Merge pull request #1111 from urbit/azimuth
Rename hull to point in Ethereum boot logic
2018-12-18 20:48:50 +01:00
Fang
e53b0497a2 Rename hul to pot, to match renaming of hull to point 2018-12-18 17:40:05 +01:00
Isaac Visintainer
61b9556612 fix _raft_lame bug 2018-12-17 16:59:24 -08:00
Fang
f3e60b800a Rename hull to point in Ethereum boot logic 2018-12-17 13:20:49 +01:00
Jōshin
830c0715f8 Only bail if profiling is enabled 2018-12-14 23:04:38 +00:00
Jōshin
69f4157588 Fixes the build on OpenBSD
Tested with stock clang on an OpenBSD 6.4 amd64 VM. Unfortunately
clang (and also gcc from ports) was not pleased about c3_rand,
whereas this was fine before. I have no idea what changed, but it
works now.
2018-12-14 22:51:02 +00:00
Joe Bryan
7a172f6860 renames event-timing, adds build option to enable 2018-12-13 20:03:19 -05:00
Joe Bryan
5a397fef43
Merge pull request #1107 from urbit/crypt-log
re-enable event-log encryption
2018-12-13 19:55:22 -05:00
Joe Bryan
abe21628d5 Merge branch 'release-candidate' into build-compat
* release-candidate: (27 commits)
  Style nits
  [CI] Update arvo
  Add a jet for +del:by
  fit UTF-8 tape bug
  calls u3_raft_work on leader promotion (for eager restart effects)
  removes unused u3v_nick (effect traversal) and u3v_http_request
  refactors event replay, removing unnecessary effect traversal
  refactors event poke, removing unnecessary effect traversal
  trailing whitespace
  adds and corrects some raft comments
  separates effects and persistence
  updates terminal to always 32 bytes on read
  updates ames to always allocate 2K bytes on read
  set alarm for behn timers
  updates u3_raft_work() to be async, adds sync u3_raft_play()
  synchronously processes each event singly
  handles effect/event pairs singly while iterating queue
  factor out raft_pump()
  factored out _raft_crop() and _raft_poke()
  uncouple roe mutation
  ...
2018-12-13 17:22:04 -05:00
Joe Bryan
766e6e507e prevents profiling on *bsd 2018-12-13 17:04:26 -05:00
Joshua Reagan
6b3c9f8dff
fit UTF-8 tape bug
You should be able to do this in dojo:

```
> "Some UTF-8: ἄλφα"
"Some UTF-8: ἄλφα"
```

Now you can.  @joemfb told me where to find the problem.
2018-12-12 18:19:54 -08:00
Joe Bryan
80f723fc17
Merge pull request #1103 from urbit/work-on-lead
calls u3_raft_work on leader promotion (for eager restart effects)
2018-12-12 02:27:23 -05:00
Joe Bryan
958e857476 calls u3_raft_work on leader promotion (for eager restart effects) 2018-12-12 02:24:13 -05:00
Joe Bryan
22e6a18e14
Merge pull request #1102 from urbit/nick-no-more
removes unnecessary effect traversals
2018-12-12 01:37:50 -05:00
Joe Bryan
62960bbc28 enables event-log encryption 2018-12-12 01:19:34 -05:00
Joe Bryan
a848191c50 refactors event replay, removing unnecessary effect traversal 2018-12-12 00:39:31 -05:00
Joe Bryan
dfecb3a1cb refactors event poke, removing unnecessary effect traversal 2018-12-12 00:39:06 -05:00
Ted Blackman
073136cb1a
Merge pull request #1101 from urbit/rc-behn-fix
fix behn timers
2018-12-11 18:56:50 -08:00
Ted Blackman
918e1cb38f
trailing whitespace 2018-12-11 18:42:38 -08:00
Joe Bryan
050c8ce104
Merge pull request #910 from urbit/lather
Process one event at a time
2018-12-11 21:05:21 -05:00
Joe Bryan
d448340a76 adds and corrects some raft comments 2018-12-11 20:55:52 -05:00
Joe Bryan
302704bd22 separates effects and persistence
and always apply effects, even if the state didn't change
2018-12-11 20:51:09 -05:00
Joe Bryan
2f24bb1d1b updates terminal to always 32 bytes on read 2018-12-11 18:39:02 -05:00
Joe Bryan
d23e55356f updates ames to always allocate 2K bytes on read 2018-12-11 18:39:02 -05:00
Isaac Visintainer
594b059b62 set alarm for behn timers 2018-12-11 14:26:57 -08:00
Ted Blackman
d8b7068345 updates u3_raft_work() to be async, adds sync u3_raft_play() 2018-12-11 17:13:55 -05:00
Ted Blackman
6e77f2b2c1 synchronously processes each event singly 2018-12-11 16:39:54 -05:00
Joe Bryan
97408e42f4 handles effect/event pairs singly while iterating queue 2018-12-11 16:39:07 -05:00
Ted Blackman
0a66673134 factor out raft_pump() 2018-12-11 02:09:52 -05:00
Ted Blackman
94cacc5629 factored out _raft_crop() and _raft_poke() 2018-12-11 02:08:49 -05:00
Ted Blackman
43d18fd0a3 uncouple roe mutation 2018-12-11 02:08:00 -05:00
Ted Blackman
cf935baf0f Synchronous egg commitment 2018-12-11 02:04:16 -05:00
Joe Bryan
fc2eaf1132 ensure file path is always freed 2018-12-10 18:02:37 -05:00