hhvm / hsl-experimental

Experimental features for the Hack Standard Library
MIT License
23 stars 10 forks source link

Add SO_REUSEADDR support, and ability to stop a server listening #105

Closed fredemmott closed 4 years ago

fredemmott commented 4 years ago

fixes #101

azjezz commented 4 years ago

maybe we can add a property in the serve ( e.g private bool $stopped = false ), set it to true when stopListening is called, and throw an exception from nextConnection next time its called ?

facebook-github-bot commented 4 years ago

@fredemmott merged this pull request in hhvm/hsl-experimental@bd4422de0c578a5d3f7210157b10a642edc140ce.