add tcp-p3 example and test#204
Conversation
1670783 to
c3e69c5
Compare
|
Interesting, the CI just broke a few minutes ago (https://github.com/bytecodealliance/componentize-py/actions/runs/22143392814/job/64013519262?pr=204)
|
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
c3e69c5 to
6a20a40
Compare
Netcat likes to close the connection if the receive half is closed by the remote host, regardless of whether stdin has been closed, and there's no obvious way to change that behavior. So on the client side we hold both halves open until we've received something, which matches the p2 example behavior.
657043a to
1a13fc9
Compare
Adapt the
tcpexample to p3 usingwasi-socketsAPI directly untilwasi-libc/wasi-sdk/cpythonare further along in p3 support