Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add some way to close an ongoing HTTPRequest (AsyncHTTPClient) #157

Open
enki opened this Issue Oct 24, 2010 · 1 comment

Comments

Projects
None yet
2 participants

enki commented Oct 24, 2010

just call _finish on the handle?

i have two use cases: one is to restart a streaming connection, the other is to limit the amount of data i want to read (not interested in downloading gigabytes)

Owner

bdarnell commented Oct 24, 2010

I don't know if calling _finish() will shut it down cleanly. Closing the socket will definitely work, although there's probably a more graceful way to do it. We don't currently expose any clean way to get at this information. AsyncHTTPClient.fetch() should probably return an object with a cancel() method.

@bdarnell bdarnell changed the title from what's the correct way to close an ongoing HTTPRequest (AsyncHTTPClient) to Add some way to close an ongoing HTTPRequest (AsyncHTTPClient) Apr 28, 2014

@bdarnell bdarnell added the httpclient label Jul 16, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment