-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ember startup backpressure #4281
Ember startup backpressure #4281
Conversation
Stream | ||
.resource( | ||
sg.serverResource[F](bindAddress, additionalSocketOptions = additionalSocketOptions)) | ||
.attempt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a combinator called onComplete
to Cats, which is basically attempt + evalTap + rethrow but I don't think it's come downstream yet. If it has, FS2 also has an onComplete
so it's probably getting shadowed
Oh, looks like build is unhappy. This makes a lot of sense to me. |
.get(s"http://${server.address.getHostName}:${server.address.getPort}")(_.status.pure[IO]) | ||
.timeout(5.seconds) | ||
.assertEquals(Status.Ok) | ||
} | ||
|
||
// server.test("server startup fails if address is already in use") { case _ => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm leaving this commented because sometimes the new server can't bind to the same port, even though the server from the previous test has already finalized. Opening a follow up issue
Fixes #4280