Closed mhdawson closed 1 year ago
Minutes from the meeting today:
*Extracted from uvwasi-agenda labelled issues and pull requests from the nodejs org prior to the meeting.
fd_readdir
ignores cookie
argument #47193
Click +GoogleCalendar
at the bottom right to add to your own Google calendar.
Tricky issue is related to streams is that it really wants you to run a callback, but challenge in uvwasi.
Is the problem that the WASI APIs are blocking? Just off the top of my head, you may be able to create a uv_loop_t
only for WASI to use. Then, you could call uv_run()
to spin that event loop until the operation completes. You would still need to use callbacks, but from the caller's perspective things would seem to be blocking.
Of course, another option is to use native sockets directly. That would be a bigger pain up front, but probably lower overhead once all the wrinkles were ironed out.
cc: @mhdawson in case ^ is relevant to #214
@cjihrig thanks for the ping, once the listen takes place, is ok to defer a uv_run() until sock_accept is called? If so then following your suggestion the sock_accept implementation might be able to simply call uv_run with the option to just run once followed by calling uv_accept and do this in a loop until uv_accept indicates that a connection has come in.
@ospencer ^ so you are aware of this discussion.
@mhdawson sorry for the delay - I was traveling. To answer your question, I'm not 100% sure, but I think so. What you're describing is how I envisioned things working.
@cjihrig seems to be working so far see - https://github.com/nodejs/uvwasi/pull/214. So far just the uvwasi_sock_accept is being run so not 100% sure getting a socket we can use but looking good so far.
Time
UTC Wed 21-Jun-2023 18:00 (06:00 PM):
Or in your local time:
Links
Agenda
Extracted from uvwasi-agenda labelled issues and pull requests from the nodejs org prior to the meeting.
nodejs/node
fd_readdir
ignorescookie
argument #47193nodejs/uvwasi
Invited
Observers/Guests
Notes
The agenda comes from issues labelled with
uvwasi-agenda
across all of the repositories in the nodejs org. Please label any additional issues that should be on the agenda before the meeting starts.Joining the meeting