Skip to content

Conversation

@jd
Copy link
Contributor

@jd jd commented Apr 5, 2019

The current code only yield once the thread have started, though there's a
little chance that one of the thread did not had time to actually sent its
request yet. That means that the requests will never be served and the thread
will fail.

This patch fixes this by making sure to do pass the execution to the asyncio
loop between each join, just in case a request needs to be handled.

Fixes #876

@jd jd requested a review from a team as a code owner April 5, 2019 14:23
@jd jd changed the base branch from master to 0.24-dev April 5, 2019 14:40
@jd jd force-pushed the fix-aiohttp-test-race branch from 4c13bb1 to 4e1783a Compare April 5, 2019 14:41
The current code only yield once the thread have started, though there's a
little chance that one of the thread did not had time to actually sent its
request yet. That means that the requests will never be served and the thread
will fail.

This patch fixes this by making sure to do pass the execution to the asyncio
loop between each join, just in case a request needs to be handled.

Fixes DataDog#876
@jd jd force-pushed the fix-aiohttp-test-race branch from 4e1783a to b5ba9d1 Compare April 5, 2019 15:02
@jd jd added the dev/testing label Apr 5, 2019
@jd jd merged commit 624f8c7 into DataDog:0.24-dev Apr 9, 2019
@jd jd deleted the fix-aiohttp-test-race branch April 9, 2019 16:20
@majorgreys majorgreys added this to the 0.24.0 milestone Apr 11, 2019
@majorgreys majorgreys mentioned this pull request Apr 12, 2019
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