[darcs-users] [patch336] Add environment variable DARCS_CONNECTION_TIMEOUT

Adolfo Builes builes.adolfo at googlemail.com
Wed Aug 11 21:20:44 UTC 2010


>
> Does this mean that parse errors are treated as 0? (which your code
> would then just silently treat as the default 30s)?  Maybe set_time_out
> should return an error instead so that you can notify the user that
> something went wrong.
>
I did a trick using the pointer that we pass from URL.hs to notify
when the environment variable is not a number. Also  I mentioned about
doing the code for the timeout higher lever, but I forgot that I would
need a handle to call curl_easy_setopt.

The code I put to notify that we had an error when reading the
environment variable is not part of the libcurl codes ( and is not
taken ).

A todo thing would be to rewrite the use of curl, and put all the high
level code that we have in hscurl.c  into Haskell code.


More information about the darcs-users mailing list