alexcrichton / tokio-curl

Asynchronous HTTP client built on libcurl
Apache License 2.0
110 stars 15 forks source link

[Bug]: tokio-curl tries to access dropped socket #5

Closed FoundOne closed 7 years ago

FoundOne commented 7 years ago

What happens: It happens randomly when downloading many pages simultaneously. Sometimes tokio-curl drops a socket from the slab and then tries to reuse it. RUST_BACKTRACE=1 RUST_LOG=trace output example: here Way to reproduce: example OS: Arch Linux x86_64 hybrid

FoundOne commented 7 years ago

I've made a fix, but it needs some testing.

NeoLegends commented 7 years ago

Got the same issues when I'm running tests that do network requests on travis.

FoundOne commented 7 years ago

Oops. I placed the check in the wrong place. I was quite sleepy back then. I'm sorry about that. Now it's corrected.

alexcrichton commented 7 years ago

Thanks for the report! I'll publish a new version with the fix