Skip to content

Commit

Permalink
fix out-of-date comment in descriptor_table.c
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Dec 12, 2023
1 parent 14757da commit f0c29d4
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
* As of this writing, we still rely on the WASI Preview 1 adapter
* (https://github.com/bytecodealliance/wasmtime/tree/main/crates/wasi-preview1-component-adapter)
* to manage non-socket descriptors, so currently this table only tracks TCP and
* UDP sockets. We use the adapter's `adapter_open_badfd` and `fd_close`
* functions to reserve and later close descriptors to avoid confusion (e.g. if
* an application tries to use Preview 1 host functions directly for socket
* operations rather than go through `wasi-libc`). Eventually, we'll switch
* `wasi-libc` over to Preview 2 entirely, at which point we'll no longer need
* the adapter. At that point, all file descriptors will be managed exclusively
* in this table.
* UDP sockets. We use the adapter's `adapter_open_badfd` and
* `adapter_close_badfd` functions to reserve and later close descriptors to
* avoid confusion (e.g. if an application tries to use Preview 1 host functions
* directly for socket operations rather than go through `wasi-libc`).
* Eventually, we'll switch `wasi-libc` over to Preview 2 entirely, at which
* point we'll no longer need the adapter. At that point, all file descriptors
* will be managed exclusively in this table.
*/

#include <assert.h>
Expand Down

0 comments on commit f0c29d4

Please sign in to comment.