Commit Graph

297 Commits

Author SHA1 Message Date
~hatteb-mitlyd
4daa9a6ed9 remove URBIT_HOME
New piers are structured as so:

cpu/.urb/{urbit.pill,chk,sis,get,put,code.~dansut-docfyn}
cpu/dansut-docfyn-dozzod-dozzod--dozzod-dozzod-dozzod-dozzod/{try,main,arvo}
2014-05-13 12:22:07 -07:00
~hatteb-mitlyd
43c3988995 add exit code to %logo card 2014-05-12 15:42:43 -07:00
~hatteb-mitlyd
3e869096b8 Merge remote-tracking branch 'urbit/master' into newbreach
Conflicts:
	urb/urbit.pill

Generate new pill.
2014-05-09 13:26:22 -07:00
~hatteb-mitlyd
4c967b2d60 avoid use-after-free in raft.c 2014-05-09 12:39:14 -07:00
Steve Dee
fab6bcdd80 Remove crya 2014-05-08 17:13:25 -07:00
~hatteb-mitlyd
8e56d82666 Merge remote-tracking branch 'urbit/master' into newbreach
Conflicts:
	urb/urbit.pill

Create a new pill.
2014-04-30 14:02:14 -07:00
~hatteb-mitlyd
e1a0cc1658 fix bogosity caused by uninitialized memory 2014-04-30 11:34:43 -07:00
Gavin Whelan
f77ac6a18c fixing bug in partially merged unix.c 2014-04-30 11:23:12 -07:00
Gavin Whelan
11a3d774a1 Removing hokey ^ jam file thing. 2014-04-30 10:43:01 -07:00
Steve Dee
3b7734336c Merge branch 'master' into newbreach
Conflicts:
	urb/urbit.pill
	urb/zod/arvo/ames.hoon
2014-04-25 18:39:29 -07:00
~hatteb-mitlyd
de79ff3fea fix cttp: body comes after cr-lf, not before 2014-04-24 14:08:51 -07:00
C. Guy Yarvin
0672685788 Remove some ames printfs; fix a warning. 2014-04-23 12:32:08 -07:00
C. Guy Yarvin
ff716a6122 Merge branch 'master' of github.com:urbit/urbit 2014-04-23 10:03:05 -07:00
C. Guy Yarvin
29ca4f9fe2 Fix ames timer to actually work. 2014-04-23 10:02:36 -07:00
Steve Dee
44cd26548b Merge branch 'master' into newbreach
Conflicts:
	urb/zod/arvo/ames.hoon
	v/sist.c
2014-04-21 19:06:16 -07:00
Steve Dee
65e9634db1 fsync after pack
Well, this might help. Apparently "useless" was a bit too strong a word.
2014-04-21 19:01:37 -07:00
Steven Dee
292156b2be Trivial self-healing log code 2014-04-22 01:53:03 +00:00
Steven Dee
36133b61e5 Fix printf 2014-04-19 01:42:07 +00:00
Galen Wolfe-Pauly
ba2052fa83 Merge branch 'master' into welcome 2014-04-18 11:07:05 -07:00
~hatteb-mitlyd
e67816ef87 Merge remote-tracking branch 'urbit/master' into newbreach
take their urbit.pill

Conflicts:
	Makefile
	urb/urbit.pill
	v/sist.c
2014-04-18 10:24:59 -07:00
Steve Dee
7aea3bd148 Expound on sequence number difference assert
Try to stop epople deleting their piers when this happens so we can
figure out what's going on here...
2014-04-17 11:40:00 -07:00
C. Guy Yarvin
c6ef1fba01 Shell console. 2014-04-16 17:49:41 -07:00
Steve Dee
a0e835ecd8 Merge branch 'master' into newbreach
Took master's pill.

Conflicts:
	Makefile
	urb/urbit.pill
2014-04-16 10:53:50 -07:00
Galen Wolfe-Pauly
2f6e953d03 welcome message 2014-04-15 20:28:22 -07:00
C. Guy Yarvin
c1a0511387 Eyre console stuff. 2014-04-15 18:35:25 -07:00
C. Guy Yarvin
1317ac3c1e Clean up requests from dead connections. 2014-04-14 11:01:18 -07:00
~hatteb-mitlyd
aec40128c9 Merge remote-tracking branch 'urbit/master' into newbreach
Update to the latest vere
2014-04-10 12:04:51 -07:00
Steven Dee
e4708058a0 Include errno properly on OpenBSD 2014-04-10 04:24:19 -07:00
Steve Dee
5c5d2b81ec Merge remote-tracking branch 'urbit/master' into newbreach 2014-04-09 17:38:59 -07:00
Steve Dee
a5a3d0d85d Fix for 64-bit sequence numbers 2014-04-09 13:31:00 -07:00
Steve Dee
289bd6e0ee Fix fs event sync 2014-04-08 16:06:14 -07:00
C. Guy Yarvin
bd5b0dd794 Merge branch 'master' of github.com:urbit/urbit
Conflicts:
	urb/zod/arvo/eyre.hoon
	urb/zod/arvo/hoon.hoon
2014-04-08 15:28:36 -07:00
C. Guy Yarvin
49cb66468f Various fixes and improvements. 2014-04-08 15:26:01 -07:00
Steve Dee
c9a4cf19cf 64-bit entry numbers 2014-04-08 09:25:49 -07:00
Steve Dee
0ebce498bd Trailing whitespace
You guys. The default git precommit hook checks for this. You can enable
it by copying and pasting this command into a shell in your Urbit
checkout:

    cp .git/hooks/precommit{.sample,}
2014-04-07 10:19:02 -07:00
~hatteb-mitlyd
298f9389d8 mkdir and unlink are permitted exactly one error
fixes #131
2014-04-05 21:45:43 -07:00
~hatteb-mitlyd
93d5722faa remove the old poll-based term stuff in favor of a uv_pipe 2014-04-03 14:47:22 -07:00
~hatteb-mitlyd
75dce9eefc make asserting malloc into a #define 2014-04-03 14:37:32 -07:00
~hatteb-mitlyd
a0c18f56b2 change to asserting malloc 2014-04-01 17:48:26 -07:00
Steve Dee
fd3c03fa73 Options cleanup
Remove sow, pas, and rez. Add comments with flags and short
descriptions. Also correctly bound ports.
2014-03-31 07:46:54 -07:00
Steve Dee
90665f29ed Skip event on replay, not disk read 2014-03-28 12:00:30 -07:00
~hatteb-mitlyd
f6c4224130 don't crash when server cannot be found 2014-03-28 11:43:35 -07:00
Steve Dee
b7c6df667c Add flag to skip the last event
Handy when that event causes disastrous repercussions at the C level.
On the whole, terrible. Note that the flag is spelled "-Xwtf",
pronounced "pleaXe wipe that fscker".
2014-03-28 11:38:23 -07:00
C. Guy Yarvin
5a1e02fb48 Fix issue #128. 2014-03-27 09:42:27 -07:00
~hatteb-mitlyd
d4cf1aabed ignore ~files too. hokey unix stuff. 2014-03-25 10:39:53 -07:00
~hatteb-mitlyd
6151a2ba5d ignore ENOENT in unix_load 2014-03-25 10:26:46 -07:00
Steven Dee
5c68bb4de6 fpurge stopped working on Arch at some point 2014-03-25 08:43:52 -07:00
Steve Dee
d9a27c0949 Found our 28 bytes 2014-03-25 08:05:46 -07:00
~hatteb-mitlyd
38c04a68e6 fix headers leak 2014-03-24 19:42:01 -07:00
~hatteb-mitlyd
d5c61a3038 use a uv_prepare callback to scan fs tree
Much more responsive file sync.
2014-03-24 11:31:03 -07:00
C. Guy Yarvin
f725293d6d Revert "Fork a child to handle checkpointing."
This reverts commit 3fa73e4e350878c8dcf4c0a2f305f7a528c4a2c3.
2014-03-22 13:25:47 -07:00
~hatteb-mitlyd
23aced9775 Fork a child to handle checkpointing.
Kill the noise, and handle exit status from the child. If anything
untoward happens to the child, we need to know about it.
2014-03-21 18:08:58 -07:00
C. Guy Yarvin
c837404578 A bunch of web fixes. Preparing to proxy. 2014-03-21 14:46:14 -07:00
C. Guy Yarvin
55c9f41b14 Merge branch 'master' of github.com:urbit/urbit 2014-03-19 15:42:12 -07:00
C. Guy Yarvin
56a61c1c7f Add a pseudo-secure http server. 2014-03-19 15:40:40 -07:00
~hatteb-mitlyd
45c092d14f load some certificates so linux doesn't barf 2014-03-19 11:59:33 -07:00
~hatteb-mitlyd
1e57cf3e1e kill the noise 2014-03-18 17:46:41 -07:00
~hatteb-mitlyd
c944ff7496 close the SSL connection after the response is seen 2014-03-18 17:32:13 -07:00
~hatteb-mitlyd
e7a75fed3c separate out needs-handshake from SSL-is-open status
no longer responds to "no request"
2014-03-18 17:29:52 -07:00
~hatteb-mitlyd
b5e38673fc a few ssl improvements 2014-03-18 17:29:51 -07:00
~hatteb-mitlyd
f3e99bae8f connect SSL on port 443, not 80, and don't over-rout.
this nearly works.
2014-03-18 17:29:51 -07:00
~hatteb-mitlyd
4370e1ecc0 closer, no longer loops infinitely 2014-03-18 17:29:51 -07:00
~hatteb-mitlyd
1abfee3d03 works a little better, but is shoving SSL data into the parser 2014-03-18 17:29:51 -07:00
~hatteb-mitlyd
6f2e5cf333 actually completes the handshake now 2014-03-18 17:29:51 -07:00
~hatteb-mitlyd
65aba238a8 first-line work on SSLifying the HTTP client
doesn't work at all, because the encrypted buffer never gets written to the net
2014-03-18 17:29:51 -07:00
~hatteb-mitlyd
0d0d6e468a formatting 2014-03-18 17:29:51 -07:00
~hatteb-mitlyd
12bf369663 continue for files only 2014-03-18 17:04:44 -07:00
~hatteb-mitlyd
8ae8be35c2 ignore files without a dot in the name, to avoid disastrous consequences 2014-03-18 16:26:58 -07:00
Steve Dee
8703249546 Ignore revo from prior terms 2014-03-14 11:02:46 -07:00
Steve Dee
607c83d683 Various fixes and cleanups 2014-03-14 11:02:45 -07:00
Steve Dee
ba71f7ca11 Trailing whitespace cleanup, C level 2014-03-14 10:50:12 -07:00
Steve Dee
0f64d9b859 Fix _http_bods_free 2014-03-13 11:29:14 -07:00
Steve Dee
2d1cab488c Fix leak in u2_raft_work 2014-03-13 11:26:27 -07:00
Steve Dee
079c4f7696 Remove useless assert... 2014-03-12 11:54:14 -07:00
Steve Dee
b71e6f161d Remove old fprintf 2014-03-12 11:52:11 -07:00
Steve Dee
27ec17b711 TODOs 2014-03-12 11:35:30 -07:00
Steve Dee
c56cfccc7d Bail instead of exit 2014-03-12 11:35:30 -07:00
Steve Dee
e787049b65 Clean up timer logic 2014-03-12 11:35:29 -07:00
Steve Dee
1627b6e78c More intelligently load from sist 2014-03-12 11:35:26 -07:00
~hatteb-mitlyd
cff116fa0c don't leak 2014-03-11 14:20:27 -07:00
~hatteb-mitlyd
6e00220193 avoid responding to a dead http req 2014-03-11 14:11:03 -07:00
Steve Dee
afa1c641e9 Start ent_w at 1
Also, increment our sequence numbers if we have to.
2014-03-11 07:46:32 -07:00
Steve Dee
399530d379 Use same election timeout always
In particular, we wait at least 150ms after starting up before declaring
an election, to give the old leader a chance to send us a heartbeat.
2014-03-10 16:25:48 -07:00
Steven Dee
6466a1760a Fix on linux, remove a debug printf 2014-03-10 23:18:58 +00:00
Steve Dee
f4f1c711d5 New event log format including term and type 2014-03-10 16:14:21 -07:00
Steve Dee
6a3a939c4a Fix for duplicate vote responses 2014-03-10 12:18:18 -07:00
Steve Dee
970c6d431f Fixes for dir syncing in raft leader mode 2014-03-10 12:10:17 -07:00
Steve Dee
ad70fa2380 Check for null vog_c 2014-03-10 11:52:49 -07:00
Steve Dee
a5b23546a6 Bump votes on restore 2014-03-07 19:25:03 -08:00
Steve Dee
139c46dd63 Fix revo logic 2014-03-07 19:16:08 -08:00
Steve Dee
be218d4f8a More aggressive reconnecting 2014-03-07 19:12:27 -08:00
Steve Dee
c5bb5bb5e7 Moronic key-value store
This is kind of dumb, but we need to persist stuff for Raft, and
we can't touch noun state from followers.
2014-03-07 19:12:27 -08:00
Steve Dee
8aa97708f4 Fix a stupid in c3_log_every 2014-03-07 19:12:21 -08:00
Steve Dee
1786c0a048 Cleanup 2014-03-07 16:47:30 -08:00
Steve Dee
7371ba09fc Fix a segfault on startup :( 2014-03-07 16:46:46 -08:00
Steve Dee
551f28b594 Log on bump to candidate 2014-03-07 16:26:15 -08:00
Steve Dee
f92eaf970c Clean up Raft options and init
I opted to keep u2_opts to just numbers, strings, and beans for now and
parse them to peer names in the Raft init code.
2014-03-07 16:19:38 -08:00
Steve Dee
e7f6270864 Rejigger boot sequence
The calls to u2_raft_work were effectless since the log hasn't been
initialized by that point.
2014-03-07 13:45:31 -08:00
Steve Dee
e43b99af67 Log killed connections 2014-03-07 13:24:33 -08:00
Steve Dee
3cda85ddc1 Longer heartbeat log interval 2014-03-07 12:26:34 -08:00