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

Miscellaneous fixes #25

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

neilmayhew
Copy link

This includes fixes to documentation, the cabal file, and the datatypes used in callback functions.

The most important change is adding a warning about needing to use the threaded runtime. It took me quite a few hours of debugging to find out why libcurl was returning a highly misleading error (CurlBadFunctionArgument) due to being interrupted by a SIGVTALRM from the non-threaded runtime.

* Move cabal-version to the start of the file
libcurl has always used size_t for buffer sizes but using the correct
Haskell type matters more now because sizeof(int) /= sizeof(size_t)
on 64-bit.
@sternenseemann
Copy link

Thanks for this! Was scratching my head quite a bit where these inconsistent errors were coming from.

sternenseemann added a commit to sternenseemann/spacecookie that referenced this pull request Sep 22, 2022
See also GaloisInc/curl#25, seems to be a
relatively recent development.
sternenseemann added a commit to sternenseemann/spacecookie that referenced this pull request Sep 22, 2022
See also GaloisInc/curl#25, seems to be a
relatively recent development.
@neilmayhew
Copy link
Author

Any chance of getting this merged, please?

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.

None yet

2 participants