Skip to content

Inconsistent behavior on run() #57

@waghanza

Description

@waghanza

Hi @dom96,

When specifying settings (port, bind address, ...), the domain is set to AF_UNSPEC. However, without settings, the domain is set to AF_INET

This make

proc run*(onRequest: OnRequest, settings: Settings) =

and
proc run*(onRequest: OnRequest) {.inline.} =

have different behavior (except if we specify domain for the first one)

Regards,


Related to the-benchmarker/web-frameworks#4554

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions