Skip to content
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

Merged
merged 7 commits into from
Jan 28, 2021

Conversation

RaasAhsan
Copy link

Fixes #4280

Stream
.resource(
sg.serverResource[F](bindAddress, additionalSocketOptions = additionalSocketOptions))
.attempt
Copy link
Author

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

@ChristopherDavenport
Copy link
Member

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 _ =>
Copy link
Author

@RaasAhsan RaasAhsan Jan 28, 2021

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

@rossabaker rossabaker merged commit 88d3d06 into http4s:series/0.21 Jan 28, 2021
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.

3 participants