Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Fixed curl example #31

Merged
merged 3 commits into from Mar 28, 2013
Merged

Fixed curl example #31

merged 3 commits into from Mar 28, 2013

Conversation

clemensg
Copy link
Contributor

Hi! Finally, I had time to try your suggestion. I did it according to the libuv poll test.
But see for yourself, it works on Windows, I hope I didn't break it on other systems and also, I hope I did not forget anything.
Thanks.
Best regards, Clemens

uv_poll_stop((uv_poll_t*) socketp);
uv_close((uv_handle_t*) socketp, (uv_close_cb) free);
uv_poll_stop(&((curl_context_t*)socketp)->poll_handle);
destroy_curl_context((curl_context_t*) socketp);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent errors.

uv_close((uv_handle_t*) &context->poll_handle, curl_close_cb);
}


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent this whole block to 4 spaces please.

@clemensg
Copy link
Contributor Author

Thanks for the correction, I'll have to be careful with the pointers, it bit me once, where I also made the mistake to notate it like Type* ptrX; and later on added another one, Type* ptrX, ptrY ;-) so: Type *ptrX is much better.

I hope the code is now ok? You are more familiar with libuv, is this method fine?

nikhilm added a commit that referenced this pull request Mar 28, 2013
Fixed curl example.

Use struct rather than access platform specific internal fd field on uv_poll_t.
Thanks to @clemensg
@nikhilm nikhilm merged commit 4789d05 into nikhilm:master Mar 28, 2013
@nikhilm
Copy link
Owner

nikhilm commented Mar 28, 2013

Thanks for the patch @clemensg!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants