httpsclient recv reentrant - part-cw/lambdanative GitHub Wiki
(httpsclient-recv-reentrant buf)
httpsclient-recv-reentrant is a special case of (httpsclient-recv buf), which obtains data from an https server. It retries to retrieve data every 0.1 seconds if an SSL_ERROR is encountered during the read attempt - hence it is mainly used in case of slow connections. Warning: Blocks on most systems!
Parameter | Description |
---|---|
buf | u8vector to which the received data are copied |
Example
Example from (redcap-import-record host token record data . xargs):
(loop (httpsclient-recv-reentrant redcap:buf) (string-append receive-str (u8vector->string redcap:buf)))