emscripten-core / emscripten-core/emscripten

Fail blocking socket operations loudly

Open
#16,047 5 comments 1 reaction 0 assignees View on GitHub
good first bug help wanted
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Would it make sense to fail blocking socket operations fail with an error code or a JavaScript exception?

@tiran encountered a `TypeError: Cannot read property 'stream' of undefined` error when calling accept on a blocking socket that was more confusing than `Error: accept call on blocking socket is not supported` would have been.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.