haskell / haskell/network

WINE Network.Socket.setSockOpt:failed(Badprotocoloption(WSAENOPROTOOPT))

Open
#604 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
366
Forks
210
Avg merge
22h 38m
Merged PRs (30d)
5

Description

It looks like https://github.com/haskell/network/pull/603 might have broken the `socket` function (at least on `WINE`).

Haskell.nix uses `iserv-proxy-interpreter.exe` to run TH code under WINE. Since the release of `network-3.2.8.0` this has been failing with:

```
iserv-proxy-interpreter.exe:Network.Socket.setSockOpt:failed(Badprotocolopt
ion(WSAENOPROTOOPT))
iserv-proxy: Network.Socket.connect: : does not exist (Connection refused)
```

I think what is going on is that the `socket` function in `iserv-proxy-interpreter` (the part running under WINE) is failing and then the `iserv-proxy` `connect` function fails (since there is nothing to connect to.

I think the error is coming from this call https://github.com/haskell/network/pull/603/files#diff-32af11237764f85b335f809887f47a50b4ef46f94ba462283f8a9a80e669fa65R126

My guess is that this works ok on Windows (since the `network` GitHub tests are passing), but fails on WINE.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.