Repository navigation
v0.5.0
A timeout for http(s) includes from C and Python.
Added
- An http(s) include from C and Python gives up after 30 s, or the time you give:
http_timeout_msinhocon_options,http_timeout=(atimedeltaor seconds) onparse_fileandparse_string. It fails withIncludeTimeout; until now a server that never answered held the parse for ever.
Changed
hocon_optionsstarts withsize_t size, which you set tosizeof(hocon_options): the library reads the fields that fit in it and takes the defaults for the rest, so a program built against this header keeps working with a later library that adds fields. Options filled in order,{HOCON_ENV_MAP, vars, true, NULL}, become{sizeof(hocon_options), HOCON_ENV_MAP, vars, true, NULL, 0}; a size of 0 isHOCON_ERR_OTHER. Rebuild against the newhocon.h.- A parse in libhocon sets SIGIO and SIGPIPE to a handler that does nothing, and leaves them so: it wakes its own fetch thread with SIGIO when the time is up.