Commit Graph

29007 Commits

Author SHA1 Message Date
Liam Fitzgerald
708fdd0116 meta: remove husky 2021-10-21 11:41:59 -05:00
Jōshin
21b60615d1 khan: skeleton for effect parsing
This is a direct port from http.c, including _reck_lily, which should
probably get factored out.

We parse sequence numbers even though they aren't yet stored on the C
side, just in case we wind up needing them later.

Still not actually handling effects.
2021-10-21 07:11:26 +00:00
Jōshin
64730a3b30 khan: close stream on EOF
Also removes debug print in _khan_moor_poke.
2021-10-21 07:11:26 +00:00
Jōshin
a115dce91c nix: remove socket in boot-fake-ship 2021-10-21 07:11:26 +00:00
Jōshin
c10e2319be khan: log on unlink on exit 2021-10-21 07:11:26 +00:00
Jōshin
a48e627951 khan: constant first 2021-10-21 07:11:26 +00:00
Jōshin
b3e71b1e55 khan: send as %fyrd
With this, you can now send a jammed `[%mas ~]` with length over the
socket, and %khan will recognize it as a `%fyrd` and print out
`[%todo %mas ~]`.
2021-10-21 07:11:26 +00:00
Jōshin
1dab3898f1 khan: sending requests to vane
The vane is of course bailing all over the place, and we probably need
to handle errors better (and maybe also count task numbers / introduce
the concept of a 'request' at C level?), but we're moving...
2021-10-21 07:11:26 +00:00
Jōshin
f51137d663 khan: cue, remove obsolete read_cb 2021-10-21 07:11:26 +00:00
Jōshin
f1fee9e1d0 khan: remove ioctl include 2021-10-21 07:11:26 +00:00
Jōshin
eab4ed9477 khan: do not unlink / close unless live 2021-10-21 07:11:26 +00:00
Jōshin
77db31f187 khan: use u3_moor 2021-10-21 07:11:26 +00:00
Jōshin
b3f12cf9ba khan: minor formatting cleanup 2021-10-21 07:11:26 +00:00
Jōshin
33d269f493 khan: wip use u3_moat instead of raw uv_pipe_t
This may be scrapped or redone as I grok newt.c. All that this
accomplishes is putting the different data structure in place, declaring
intent to use.
2021-10-21 07:11:26 +00:00
Jōshin
ba76bcbc32 khan: close on uv_read_start failure
Also do some minor cleanup.
2021-10-21 07:11:26 +00:00
Jōshin
e56ab9da1d khan: refactor, fix memory issues
Goes ahead and makes the socket its own separate data structure linked
from u3_khan. Makes it easier to get proper links to everything without
fiddling with offsetof. Seems to resolve the memory corruption issues we
were seeing.

Also make an effort to shutdown / close resources on exit.
2021-10-21 07:11:26 +00:00
Jōshin
dd5b833b2d khan: fix pointer reference
Using offsetof is very gross and probably suggests something is wrong
somewhere. Maybe we should store the server configuration on a separate
object from the khan configuration? But in the case of khan there isn't
really a concept of multiple servers...

N.B. We still have memory corruption.
2021-10-21 07:11:26 +00:00
Jōshin
005f80ae0d khan: wip driver implementation
Implements the connection callback, which accepts and opens up the read
end of the pipe, then just waits. Stores open connections on u3_khan.
Uses simple incrementing connection numbers.

I noticed in here that vere/newt.c seems to implement a protocol much
like the one we're looking for; may try to switch to using that more
explicitly.

Needs more well-thought-out error handling policy in connection
callback. What do we do -- bail? Deliver a non-fatal error and drop the
connection?
2021-10-21 07:11:26 +00:00
Jōshin
4d237ca65f khan: error handling
Ye olde C style nested gotos. Have not tested edge cases thoroughly yet;
should do prior to release.
2021-10-21 07:11:26 +00:00
Jōshin
296c8f0e94 khan: open socket on %born completion 2021-10-21 07:11:26 +00:00
Jōshin
1ac2a15201 khan: use u3_Host.dir_c consistently 2021-10-21 07:11:26 +00:00
Jōshin
0922e66111 khan: thinking intensifies 2021-10-21 07:11:26 +00:00
Jōshin
d0fd562102 khan: thoughts in conn_cb 2021-10-21 07:11:25 +00:00
Jōshin
f169e48cb3 khan: no uv_connect_t, spacing 2021-10-21 07:11:25 +00:00
Jōshin
368c09d86d khan: sequence number before socket open 2021-10-21 07:11:25 +00:00
Jōshin
9a9455d442 khan: TODO, init pipe after unlink 2021-10-21 07:11:25 +00:00
Jōshin
bcc97b728e khan: assert name 2021-10-21 07:11:25 +00:00
Jōshin
0fa6a70801 khan: unlink socket on close
Made URB_SOCK_PATH an array instead of pointer as well, to be able to
use sizeof.
2021-10-21 07:11:25 +00:00
Jōshin
c1f38c7397 http: check return of snprintf
Purely cautionary / defensive programming; no reason to think this would
have been a problem.
2021-10-21 07:11:25 +00:00
Jōshin
fc95d7ded7 khan: listening on socket 2021-10-21 07:11:25 +00:00
Jōshin
f2df8b83d5 khan: io driver skeleton 2021-10-21 07:11:25 +00:00
Jōshin
0102bb271f behn: comment spacing 2021-10-21 07:11:25 +00:00
finned-palmer
648a6efed2 Fix horiz. pad. on mobile layout 2021-10-20 19:46:20 -05:00
finned-palmer
4a53e89186 Add home icon, match new design somewhat 2021-10-20 19:46:17 -05:00
finned-palmer
3b35df4620 Fix master key invoice as well. 2021-10-20 19:44:20 -05:00
finned-palmer
eb5d026df4 Fix issues with bridge and external invoices 2021-10-20 19:44:19 -05:00
Hunter Miller
a71724371c local-storage: better versioning scheme until modules 2021-10-20 18:48:42 -05:00
Hunter Miller
4196abf0ce apps-search: adds status indicator 2021-10-20 17:28:41 -05:00
Hunter Miller
9dc7dfa439 vite: fixing secure proxy 2021-10-20 15:19:26 -05:00
fang
a7d707fa91
hood: add non-interactive mode to |nuke
Also improves the copy a bit.
2021-10-20 14:15:50 -05:00
DaneBettis
6dcbb82f54 vere: altered %bout to use micro symbol, fixed comments 2021-10-20 19:07:41 +00:00
fang
5c09a46c07
hood: ask for confirmation during |nuke 2021-10-20 11:40:57 -05:00
Liam Fitzgerald
1cc388c42f landscape: fix failing scry causing messages to be improperly validated
If we received a graph-node with that was signed by a past or future
life of a ship, then we would potentially crash scrying for the public
keys. Now, if there is a mismatch between lives, we simply no-op and
treat the signature as valid.
2021-10-19 13:00:00 -05:00
janeway-bot
22eae5ea06
Merge 28f64079a7 into release/next-userspace 2021-10-19 21:35:34 +04:00
Liam Fitzgerald
28f64079a7
Merge pull request #5335 from urbit/revert-5265-master
Revert "blockquote: Remove unnecessary log of quote contents"
2021-10-19 12:35:05 -05:00
janeway-bot
6323d8b494
Merge 5df73c4b3f into release/next-userspace 2021-10-19 21:34:15 +04:00
Liam Fitzgerald
49b38df2b6
Revert "blockquote: Remove unnecessary log of quote contents" 2021-10-19 12:33:54 -05:00
Liam Fitzgerald
5df73c4b3f
Merge pull request #5265 from pfych/master
blockquote: Remove unnecessary log of quote contents
2021-10-19 12:33:50 -05:00
yosoyubik
824de38532 roller: wip order roller tx history by timestamp 2021-10-16 12:47:39 +02:00
yosoyubik
a392ccde58 roller: wip finding map simplification 2021-10-16 07:26:57 +02:00