Commit Graph

524 Commits

Author SHA1 Message Date
C. Guy Yarvin
5c3223ba1f More memory pls. 2014-07-31 13:23:02 -07:00
Jared Hance
3d8419493d Merge branch 'master' into klay
Conflicts:
	urb/urbit.pill
2014-07-30 15:14:38 -04:00
C. Guy Yarvin
64be83c562 Various fixes and improvements. 2014-07-30 10:53:30 -07:00
Jared Hance
201a115f04 Merge branch 'master' into klay
Conflicts:
	urb/urbit.pill
2014-07-29 13:25:18 -04:00
C. Guy Yarvin
1ae027d6cf Ford compiles - still needs some syntax. 2014-07-24 13:29:16 -07:00
Jared Hance
4b88daa0cc Can boot subs now! 2014-07-24 11:11:40 -04:00
Jared Hance
2e8b2aee22 Initial klay stuff.
Clay.hoon doesn't work yet, haven't done subscriptions.

Should probably changes yakis to only reference yaki mugs rather than
yakis themselves - and have a blob map in the dome. Otherwise
subscriptions and merges will suck for large stuff.
2014-07-17 11:40:52 -04:00
Jared Hance
2241d0011b Merge branch 'clay'
Conflicts:
	urb/urbit.pill
2014-07-16 13:56:34 -04:00
Jared Hance
e547b32554 Fix crash due to the change in %clay storage model 2014-07-10 09:49:59 -04:00
pcmonk
4ace669911 raft fix (maybe) 2014-07-09 18:08:55 -07:00
pcmonk
8bff7350aa removed stale %send handling 2014-07-09 15:59:22 -07:00
pcmonk
c4b8f78afb %send effect does not need to drop through anymore 2014-07-09 14:42:08 -07:00
~hatteb-mitlyd
258a1142de fix infelicities in sync 2014-07-03 11:44:14 -07:00
~hatteb-mitlyd
b44797d0d2 undo noisy sync stuff, fix bad string compare leading to disastrous sync 2014-07-01 17:18:56 -07:00
C. Guy Yarvin
864c4f01c7 Change ++ja to ++jo and fix some stuff. 2014-07-01 16:29:44 -07:00
Jared Hance
bed7ddbb08 Fl Pt works.
The only failure I can get in the test suite is that signalling nan'n
crash it, which is expected behavior anyway.

Enables sse3 and fast-math.
2014-06-30 14:43:06 -04:00
Jared Hance
bf1978bc3b More floating point bugfixes.
Also enable FTZ, a SSE instruction... For now at least.
2014-06-30 12:24:32 -04:00
C. Guy Yarvin
5eb3c4e1dd %gall over %ames, first cut. 2014-06-29 16:58:17 -07:00
~hatteb-mitlyd
c4d01192dc Merge remote-tracking branch 'urbit/newnextbreach'
this obsoletes newnextbreach, nextbreach, newbreach, et cetera.

Conflicts:
	gen164/4/in.c
	urb/zod/arvo/hoon.hoon
2014-06-25 13:39:48 -07:00
C. Guy Yarvin
c0692b7a5c Various fixes and improvements. 2014-06-24 10:32:59 -07:00
~hatteb-mitlyd
98a44cde66 total hack to get effects processed sooner 2014-06-18 12:04:27 -07:00
Galen Wolfe-Pauly
ab410e2fe0 moved setup to readme, and ~ 2014-06-09 14:56:56 -07:00
~hatteb-mitlyd
c85c87f71a fix build on gcc 2014-06-09 10:00:17 -07:00
~hatteb-mitlyd
29eb63517b reorder blew 2014-06-07 17:23:35 -07:00
~hatteb-mitlyd
cccf3e2d93 default telnet windows to 80x25 2014-06-07 17:07:28 -07:00
~hatteb-mitlyd
4195c71113 negotiate about window size properly 2014-06-07 16:55:15 -07:00
~hatteb-mitlyd
c35b08e16f partially negotiate char-at-a-time telnet mode 2014-06-07 16:05:53 -07:00
~hatteb-mitlyd
9000cabe48 minor cleanups 2014-06-07 13:58:29 -07:00
~hatteb-mitlyd
50efa32a2b remove wipe, change boil 2014-06-07 13:58:29 -07:00
~hatteb-mitlyd
4344e97cb8 crash less often with dead terminals 2014-06-07 13:20:51 -07:00
~hatteb-mitlyd
c3727ee120 Don't overload the hole card 2014-06-07 13:18:13 -07:00
~hatteb-mitlyd
1b20a22eef terminal hole card 2014-06-07 13:05:35 -07:00
~hatteb-mitlyd
19ce1e5ffb reorg tty struct 2014-06-07 12:27:48 -07:00
~hatteb-mitlyd
b0472d9276 close terminals properly 2014-06-07 12:27:47 -07:00
~hatteb-mitlyd
f186c44ad9 further telnet hacks
make C-d on an empty telnet terminal do nothing, don't suck in CRs
2014-06-07 12:27:47 -07:00
~hatteb-mitlyd
db0961f171 free a failed-accept http conn asynchronously 2014-06-07 12:27:47 -07:00
~hatteb-mitlyd
f8f3ae7968 first hack at telnet 2014-06-07 12:27:47 -07:00
Jared Hance
8b1bfe8e72 Merge branch 'master' into nextbreach
Conflicts:
	urb/urbit.pill
	urb/zod/arvo/hoon.hoon
2014-06-06 15:38:38 -04:00
C. Guy Yarvin
4628a5f531 More vane restructuring. 2014-06-05 15:14:49 -07:00
~hatteb-mitlyd
5b27726ca7 try to avoid fs caching on various platforms 2014-06-05 14:21:11 -07:00
C. Guy Yarvin
b445d373ed %batz reasonably healthy on nextbreach. 2014-06-05 12:17:25 -07:00
~hatteb-mitlyd
e3a32b69db carriers get files from U2_LIB, new pill 2014-06-03 18:33:35 -07:00
~hatteb-mitlyd
d45a407c1d fix braino in fake-make 2014-06-03 16:45:00 -07:00
~hatteb-mitlyd
232c80ada5 beginning stages of fake-net hackery 2014-06-03 16:39:28 -07:00
C. Guy Yarvin
b45e72a750 IPv4 lanes now have a timestamp. 2014-06-03 14:01:40 -07:00
C. Guy Yarvin
f4acd72d90 Merge branch 'master' of github.com:urbit/urbit
Conflicts:
	urb/urbit.pill
2014-06-03 11:25:12 -07:00
~hatteb-mitlyd
4c51fa75ee crash when crude fails 2014-06-03 11:10:24 -07:00
C. Guy Yarvin
d57b87d94a Some vane cleanups, etc. 2014-06-02 22:07:32 -07:00
~hatteb-mitlyd
b76b207bd2 fix booting without checkpoint 2014-06-01 22:24:50 -07:00
~hatteb-mitlyd
dd0104dbce Add basic synclog code to try and track sync issues 2014-05-31 20:26:18 -07:00
~hatteb-mitlyd
c819b4c034 Merge remote-tracking branch 'origin/newbreach'
Update protocol for breach.

Conflicts:
	f/trac.c
	urb/urbit.pill
	urb/zod/arvo/zuse.hoon
	v/raft.c
2014-05-30 17:56:12 -07:00
Gavin Whelan
901c83799b Merge various changes 2014-05-30 16:13:44 -07:00
Gavin Whelan
9933bca9cf Merge and minor merge changes 2014-05-30 15:59:58 -07:00
~hatteb-mitlyd
b04775c002 remove old boot cruft 2014-05-30 15:05:47 -07:00
C. Guy Yarvin
8327419b78 Revert "Remove unused arms from arvo external core."
This reverts commit b754c2aeadbc8028a2e7989066dbbf08d2f293ef.
2014-05-30 14:51:28 -07:00
C. Guy Yarvin
4cbb1eeb18 Remove unused arms from arvo external core. 2014-05-30 14:45:41 -07:00
Gavin Whelan
97637ebe78 Merging clay fixes 2014-05-30 13:36:51 -07:00
C. Guy Yarvin
534e1a9090 Perfect GHETTO. 2014-05-30 12:47:47 -07:00
C. Guy Yarvin
bb4696d9aa Only the GHETTO can save the GHETTO. 2014-05-30 12:05:03 -07:00
C. Guy Yarvin
93bd99a4d2 GHETTO. 2014-05-30 11:44:08 -07:00
C. Guy Yarvin
f4e45a67ab GHETTO. 2014-05-30 11:43:48 -07:00
~hatteb-mitlyd
f97058f0b8 more profiling detritus
Conflicts:
	v/raft.c
2014-05-30 11:42:49 -07:00
~hatteb-mitlyd
b23c701c2a more profiling detritus 2014-05-30 11:09:47 -07:00
Gavin Whelan
eb4bd3c6cc Merge 2014-05-29 12:33:46 -07:00
~hatteb-mitlyd
3566984894 crappy punk-perf 2014-05-29 12:19:55 -07:00
Gavin Whelan
3d2cc3027d Merging merge 2014-05-28 12:26:16 -07:00
~hatteb-mitlyd
37e351528e wire up delete/get/put in cttp 2014-05-18 18:49:59 -07:00
~hatteb-mitlyd
24b82f00fd Merge remote-tracking branch 'urbit/master' into newbreach
pull in ssl fix
2014-05-16 15:53:23 -07:00
~hatteb-mitlyd
bf73cea511 SSL bios are freed by SSL_free 2014-05-16 15:52:11 -07:00
~hatteb-mitlyd
13e5b0966f Merge remote-tracking branch 'urbit/master' into newbreach
Conflicts:
	urb/urbit.pill

pill created from fakezod
2014-05-16 15:04:40 -07:00
~hatteb-mitlyd
cb4c01b32d sync toplevel files 2014-05-16 14:01:48 -07:00
~hatteb-mitlyd
e68a2a25d9 attempt to sync out files at toplevel 2014-05-16 14:01:48 -07:00
~hatteb-mitlyd
935e3dd063 SSL palliative 2014-05-15 12:55:30 -07:00
~hatteb-mitlyd
d118abb758 fix free in cttp 2014-05-14 15:12:04 -07:00
~hatteb-mitlyd
8823426918 fix _cttp_mcut_quay
the quay is no longer a map...
2014-05-14 13:22:29 -07:00
~hatteb-mitlyd
7881861296 sync palliative: check after block, not before 2014-05-13 16:34:09 -07:00
~hatteb-mitlyd
a1055f57cb sync palliative: don't assert, recreate 2014-05-13 16:32:44 -07:00
~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
Steve Dee
71e67e7e9b Fix long line 2014-03-07 12:17:08 -08:00
Steven Dee
8ef45612dd Unsigned format specifiers 2014-03-07 20:01:09 +00:00
Steve Dee
3383de7938 Comments 2014-03-07 20:01:04 +00:00
Steve Dee
1e10cd5d95 Clean up connections
The code seems much less racy now.
2014-03-07 20:00:44 +00:00
Steven Dee
22ca1dfdf0 Rejigger connection killing 2014-03-07 20:00:44 +00:00
Steven Dee
53fafd25fd update -> note, and call it 2014-03-07 20:00:44 +00:00
Steven Dee
7c7c044525 Add ron_u->liv
This prevents us from double-killing connections in races, e.g. the
one between _raft_rest_name and _raft_connect_cb.
2014-03-07 20:00:44 +00:00
Steven Dee
60e63dd869 s/raft/sist/ 2014-03-06 10:53:32 -08:00
Steven Dee
e5a11b5aa0 Minor fixes and cleanup 2014-03-06 10:18:36 -08:00
Steve Dee
27e45b8c48 Fewer TODOs 2014-03-06 08:59:21 -08:00
Steve Dee
cc345da3e4 Clean up and dedup message writing 2014-03-06 08:59:21 -08:00
Steve Dee
9e2f12fb80 Leader election appears to work 2014-03-06 08:59:20 -08:00
Steve Dee
2e0f7df85c Duplex connections 2014-03-06 08:59:20 -08:00
Steve Dee
66fedab1fe Raft message sending working 2014-03-06 08:59:20 -08:00
Steve Dee
1ea754ef88 Some TODOs 2014-03-06 08:59:20 -08:00
Steve Dee
008558a1f7 WIP hand-rolled parsing, read side 2014-03-06 08:59:20 -08:00
Steve Dee
85c3cf4f5e Use uv_ip4_addr 2014-03-06 08:59:20 -08:00
Steve Dee
cc096a99af Comment log lines 2014-03-06 08:59:20 -08:00
Steve Dee
f17f0add72 More sanity checking and cleanup 2014-03-06 08:59:20 -08:00
Steve Dee
af91e4a2c1 WIP more work 2014-03-06 08:59:20 -08:00
Steve Dee
d045f31f23 Rejigger the event loop again 2014-03-06 08:59:20 -08:00
Steve Dee
3f7e6d5e94 More work 2014-03-06 08:59:20 -08:00
Steve Dee
abc5d4fb0d More work 2014-03-06 08:59:19 -08:00
Steve Dee
5507162089 Comments 2014-03-06 08:59:19 -08:00
Steve Dee
424af0354d WIP Raft network base 2014-03-06 08:59:19 -08:00
Gavin Whelan
c85fd1fe35 Fixed Linux specific bug causing lack of stack overflow traces. 2014-03-04 14:48:59 -08:00
C. Guy Yarvin
3b98f316a0 Various fixes and improvements. 2014-03-04 11:17:34 -08:00
C. Guy Yarvin
dd4a42b345 Some HTTP client fixes. 2014-03-03 11:51:35 -08:00
C. Guy Yarvin
3400b6bacb Working HTTP client. 2014-03-02 14:31:03 -08:00
C. Guy Yarvin
16dd948e7d Attempted fix to an intermittent sync event bug. 2014-02-27 10:33:20 -08:00
C. Guy Yarvin
a7055224fa Various HTTP client fixes. 2014-02-26 17:58:40 -08:00
C. Guy Yarvin
af81e7c7b4 Trivial test cahnge. 2014-02-26 16:42:43 -08:00
C. Guy Yarvin
54ed2bdcb0 More C files. 2014-02-26 16:40:53 -08:00
C. Guy Yarvin
cc255a4c49 New cttp file. 2014-02-26 16:39:48 -08:00
Steve Dee
edc28b9ba7 Get new event loop working with checkpoints
Modifying u2_reck is a bad idea in the face of checkpoints. Just stick
everything on roe. This actually cleans up the logic a bit -- we can
execute non-core-modifying actions immediately, rather than on the next
tick.
2014-02-25 12:18:18 -08:00
Steve Dee
d7e4c46150 Revert "Revert "Merge remote-tracking branch 'urbit/master' into master""
This reverts commit dc6f72fa0a8ff2097b1e9c900ebec444c0d4c24f.
2014-02-25 12:18:07 -08:00
Steve Dee
de5048e895 Revert "Merge remote-tracking branch 'urbit/master' into master"
This reverts commit d52d2835b96f89e7ebbe5392c99f1483d165ee0b, reversing
changes made to 58838ea246e52c064719edc56e29b6a1ba713fdf.

Conflicts:
	Makefile
2014-02-24 11:27:57 -08:00
Steve Dee
9b992ae438 Merge remote-tracking branch 'urbit/master' into master
Conflicts:
	v/loop.c
2014-02-24 10:45:10 -08:00
Steve Dee
d83f057881 bail instead of exit from boot
Fixes terminal state not being reset on boot error. We pre-initialize
pig to prevent warnings since gcc doesn't understand that u2_lo_bail
exits.
2014-02-24 10:40:52 -08:00
Steve Dee
284811c92b Assert single-instance mode on push 2014-02-24 10:31:38 -08:00
Steve Dee
6143fe46b2 Back out log format version bump 2014-02-24 10:29:08 -08:00
Steve Dee
242e888c2c Get entry number from raft data structure directly 2014-02-24 10:17:26 -08:00
Steve Dee
575f28cef0 Commit on next libuv cycle in single-instance mode 2014-02-19 13:57:17 -08:00
Steve Dee
2fc0ccf2d1 Fix event playback 2014-02-19 11:51:44 -08:00
Steve Dee
a957cd649e WIP cleanup and fixes 2014-02-18 16:48:46 -08:00
C. Guy Yarvin
4e42621b93 Add gc in restore. 2014-02-17 22:29:23 -08:00
Steve Dee
e0e37cc569 Splinter disk persistence and reck stuff back out 2014-02-17 18:21:24 -08:00
Steve Dee
704dfd6d85 Write term and log type, in preparation for raft 2014-02-17 17:56:42 -08:00
C. Guy Yarvin
6c22acbfa7 Some memory palliatives. 2014-02-14 17:35:22 -08:00
Steve Dee
6182bd7d14 New event loop working, super rough cut 2014-02-14 15:15:38 -08:00
Steve Dee
27b50018a4 More loop -> raft, add u2_raft_boot 2014-02-12 17:27:09 -08:00
Steve Dee
2d5f78e39a WIP Move lug_u to u2_raft 2014-02-12 11:50:24 -08:00
Steve Dee
5db81ccab7 Trivial fixups 2014-02-12 11:50:05 -08:00
Steven Dee
53735a8b33 Fixes to our hi/lojack logic
This doesn't actually fix the prompt-eating bug, but it sure looks like
it ought to, doesn't it?
2014-02-12 18:06:49 +00:00
Steve Dee
0ccaadd10b WIP raft single instance
Shove all our disk stuff crudely into raft.c.
2014-02-11 17:14:25 -08:00
Steve Dee
28fe4ec482 WIP rafty loop.c
_lo_save() sticks events on roe for processing in later calls to
_lo_work().
2014-02-11 13:13:30 -08:00
Steve Dee
580a7323f4 WIP Make _lo_work rafty
Carts are now batches of events waiting to be or just recently
persisted. _lo_work calls u2_reck_kick on the last batch of events,
removes every batch that's been through Raft, and then prepares the next
batch.

TODO make _lo_punk et al stick things on roe

TODO move disk persistence to raft.c

TODO raft_push: lo_open / mark / lo_shut
2014-02-11 12:57:41 -08:00
Steve Dee
d69aaf1491 Make u2_reck_plan push to roe 2014-02-10 16:07:22 -08:00
Steve Dee
85085f713e Move srand call, seed from pid 2014-02-10 16:07:22 -08:00
Steve Dee
5a16660af1 Skeleton for raft 2014-02-10 16:07:09 -08:00
Steve Dee
6df5fb3155 New-style raft options 2014-02-05 15:25:57 -08:00
Steve Dee
c91e950eb7 Add raft listener/peers 2014-02-05 15:25:57 -08:00
Steve Dee
fc51f17322 Add _main_readw 2014-02-05 15:25:57 -08:00
Curtis Yarvin
d5421bf717 Fix -I. 2014-02-03 21:55:19 +00:00
C. Guy Yarvin
a5fee9936b Various fixes and improvements. 2014-01-27 11:09:56 -08:00
Curtis Yarvin
00e218d76e Merge branch 'master' of github.com:urbit/urbit 2014-01-27 18:49:07 +00:00
Curtis Yarvin
ae489b86da Quick 64-bit fixes. 2014-01-27 18:48:55 +00:00
Steven Dee
1ab1528749 Warn about unset URBIT_HOME 2014-01-26 21:31:48 -08:00
C. Guy Yarvin
997c32f192 Various fixes and improvements. 2014-01-20 13:50:54 -08:00
Steve Dee
2b1077899e Add hostname 2014-01-17 09:42:47 -08:00
Steve Dee
ed09e5d12e Bring up listeners after boot 2014-01-17 00:12:05 -08:00
Steve Dee
97eeb27d41 Batch pier creation 2014-01-15 17:41:30 -08:00
Steve Dee
b8aec6e5d8 Get a random UDP port... 2014-01-15 13:00:47 -08:00