Commit graph

2907 commits

Author SHA1 Message Date
bunnie
2fbb522c06 modify the web server to use mpsc, multiple workers
This is basically the Rust example for the web server, with
some tweaks. Add a command to make the device buzz when
a particular URL is hit, and to wait before responding when
another one is hit.
2022-04-17 18:50:10 +08:00
bunnie
89ceba9674 tweak some parameters and debug infos
total threads in the net crate are around 10 right now, 32 max, so
increasing the sleeping thread limit to 16, since every now and then
we get exhaustion notes.
2022-04-17 18:49:27 +08:00
bunnie
ecd875e64f remove the legacy files 2022-04-17 05:00:51 +08:00
bunnie
12190b9184 strip out the legacy xous Tcp stack implementation 2022-04-17 04:59:10 +08:00
bunnie
f2bd4a6193 fix listener address and also remove the forced timeout on read 2022-04-17 04:58:55 +08:00
bunnie
a97b548f94 implement Shutdown for TcpStream 2022-04-17 04:07:54 +08:00
bunnie
b3d83c8494 migrate to std::TcpListener in tests 2022-04-17 04:07:13 +08:00
bunnie
806b09ec0d apply TcpStream fixes
- allow for zero-length tx/rx returns
- implement "shutdown" function, which is different from close:
shutdown requires any pending connections to return Ok(0) immediately,
but the socket is not dropped.
2022-04-17 04:06:05 +08:00
bunnie
9eb35ddd49 Merge remote-tracking branch 'origin/main' into bunnie-dev 2022-04-16 06:28:29 +08:00
bunnie
e025d3e2f7 add offline option to cargo config (requires uncommenting the offline option) 2022-04-16 06:27:05 +08:00
bunnie
a555f0380e initial tcplistener draft 2022-04-16 06:26:08 +08:00
bunnie
5d2c65cb6c fix missing update to display in panic handler 2022-04-10 16:57:04 +08:00
bunnie
46624addd0 clean up comments and review panic handler before push 2022-04-10 15:52:57 +08:00
bunnie
cb9ef127ce add an off-line config reminder option in .config 2022-04-10 15:52:31 +08:00
bunnie
9254d6830a your host desires not your guru meditations
ommmmmmmmm
2022-04-10 04:47:34 +08:00
bunnie
7353c3ab9c add guru meditations 2022-04-10 04:42:02 +08:00
bunnie
3f962b6bb0 make progress updates fail gracefully on server queue full
Progress updates can come at a right too high for the renderer
to keep up, so instead of deadlocking, we discard update messages
that are too frequent.
2022-04-08 18:55:56 +08:00
bunnie
3ef2dae2f0 revert test config and make chinese text also render qr code 2022-04-08 16:05:42 +08:00
bunnie
b4dad54315 fix missing unlock() statement at end of modals 2022-04-08 15:58:59 +08:00
bunnie
fb4ce334c4 missed an instance in a demo app 2022-04-08 15:27:40 +08:00
bunnie
cd8c762c55 patch up QR code PR, change method signature as discussed
now any modal notification can also render as a QR code
2022-04-08 15:19:56 +08:00
bunnie
679fde33a7
Merge pull request #137 from nworbnhoj/qrcode
add as_qrcode to Notification modal
2022-04-08 14:28:26 +08:00
nworbnhoj
8c5c2228d2 Merge branch 'main' into qrcode 2022-04-08 16:22:19 +10:00
nworbnhoj
2a957e55cd add as_qrcode to Notification modal 2022-04-08 14:16:15 +10:00
bunnie
bc53668018 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-04-08 01:43:58 +08:00
bunnie
a85d9ad18b Merge branch 'bunnie-dev' into main 2022-04-08 01:34:02 +08:00
bunnie
54ce057f09 update doc links 2022-04-08 01:33:48 +08:00
bunnie
bc55e7db5f update the skeleton to the more recent practices 2022-04-08 01:33:31 +08:00
Sean Cross
a819bc1e5c
Merge pull request #136 from gsora/feature/ignore-target-dirs
chore: ignore anything called "target"
2022-04-07 21:05:33 +08:00
Gianguido Sorà
eecc1fe22a chore: ignore anything called "target" 2022-04-07 15:00:22 +02:00
bunnie
cf9265316d Merge branch 'bunnie-dev' into main 2022-04-07 19:28:39 +08:00
bunnie
d49c35dc0c verify that unmount callbacks are working 2022-04-07 17:58:37 +08:00
bunnie
52d56f39f1 wire up PDDB key unmount callbacks (oops) 2022-04-07 17:37:25 +08:00
bunnie
12ced30f40 fix a minor typo 2022-04-07 17:37:20 +08:00
bunnie
6ac4ef292b add basis mount/unmount to pddb shell commands, fix some UX formatting 2022-04-07 15:32:47 +08:00
bunnie
1ad7c43f81 refactor pddb ux thread to use deferred response messaging 2022-04-07 14:46:44 +08:00
bunnie
28de1b27a6 add some documentation to modals 2022-04-07 14:24:10 +08:00
bunnie
ce9a71b958 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-04-07 04:49:43 +08:00
bunnie
6ef0072a69 Merge branch 'bunnie-dev' into main 2022-04-07 04:49:29 +08:00
bunnie
c97a00ed1f refactor validator to not create a new single-use server 2022-04-07 04:38:38 +08:00
bunnie
f720f3175c refactor main loop to use deferred responses
I think things could be compactified even further, but this is a
first-step "merge the threads and break as few things as possible"
pass. Would like to get @gsora's multi-line boxes merged into this
new system before doing even more optimization.
2022-04-07 04:04:37 +08:00
bunnie
360e50a8bb refactor locking to use deferred responses 2022-04-07 02:19:37 +08:00
bunnie
1261d73451 remove execution gate server and use deferred callback idiom instead
reduces one connection on all PIDs that require suspend/resume
callbacks; lightens kernel by about 16k runtime load
2022-04-07 01:13:49 +08:00
bunnie
c36d0d4111 remove an unnecessary xns registration 2022-04-07 00:20:07 +08:00
bunnie
92c6a93147 eliminate yield loop on blocking mount poller 2022-04-07 00:04:25 +08:00
bunnie
b75df1efb3 annotate rationale on multiple variants of pddb mount calls 2022-04-06 23:46:39 +08:00
bunnie
8ded66cd27
Merge pull request #134 from nworbnhoj/main
Add helpful links regarding Messaging into doco
2022-04-06 23:43:56 +08:00
nworbnhoj
d862e25a55
Correct rkyv link to v0.4.3 in API.md 2022-04-06 21:48:20 +10:00
bunnie
f6131693ab Merge branch 'bunnie-dev' into main 2022-04-06 13:38:55 +08:00
bunnie
1b25f4c11d fix hosted mode 2022-04-06 13:38:44 +08:00