Skip to content

net/write on Windows throws unexpected network error #1565

@rapidpunch

Description

@rapidpunch

The example in the Janet Docs, Networking, TCP, Clients

(with [conn (net/connect "127.0.0.1" "8000" :stream)]
  (printf "Connected to %q!" conn)
  (:write conn "Echo...")
  # ...
  )

causes an "unexpected network error" when executed on Windows:

error:
in net/write [src/core/net.c] on line 907

Substituting net/write with ev/write yields the same error, just shifting its source:

error:
in ev/write [src/core/ev.c] on line 3190

On Linux, everything works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions