emscripten-core/emscripten

Fail blocking socket operations loudly

Open

#16 047 ouverte le 17 janv. 2022

Voir sur GitHub
 (5 commentaires) (1 réaction) (0 assignés)C++ (3 519 forks)batch import
good first bughelp wanted

Métriques du dépôt

Stars
 (27 361 stars)
Métriques de merge PR
 (Merge moyen 19j 10h) (147 PRs mergées en 30 j)

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.

Guide contributeur