Skip to content

Fix inet_addr#67

Merged
stepcut merged 1 commit intoHappstack:masterfrom
gbaz:patch-1
May 27, 2021
Merged

Fix inet_addr#67
stepcut merged 1 commit intoHappstack:masterfrom
gbaz:patch-1

Conversation

@gbaz
Copy link
Copy Markdown
Contributor

@gbaz gbaz commented May 26, 2021

This breaks with modern Network libraries and I don't see how it ever worked. getAddrInfo takes an optional port number (or named port) in that argument. "tcp" is not a port. Passing Nothing suffices, since we're just getting the hostAddress and don't care about the port.

This breaks with modern Network libraries and I don't see how it ever worked. getAddrInfo takes an optional port number (or named port) in that argument. "tcp" is not a port. Passing Nothing suffices, since we're just getting the hostAddress and don't care about the port.
@gbaz
Copy link
Copy Markdown
Contributor Author

gbaz commented May 26, 2021

(note: this only occurs in the listenOnIPv4 path, which is uncommon, so that's why i suppose it wasn't caught.)

@stepcut stepcut merged commit 7cab1d7 into Happstack:master May 27, 2021
@stepcut
Copy link
Copy Markdown
Member

stepcut commented May 27, 2021

Mysterious. Perhaps on some platforms in the past an invalid service name was treated the same as passing NULL.

@stepcut
Copy link
Copy Markdown
Member

stepcut commented May 27, 2021

on hackage as happstack-server-7.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants