305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
|
(mutex-lock! *http-mutex*)
(set! *http-requests-in-progress* (+ 1 *http-requests-in-progress*)))
;; serverdat contains uuid to be used for connection validation
;;
;; NOTE: serverdat must be initialized or created by servdat-init
;;
(define (http-transport:send-receive sdat qry-key cmd params #!key (numretries 3))
(let* ((res #f)
(success #t)
(sparams (with-output-to-string
(lambda ()(write params)))))
;; send the data and get the response extract the needed info from
;; the http data and process and return it.
(let* ((send-recieve (lambda ()
|
|
|
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
|
(mutex-lock! *http-mutex*)
(set! *http-requests-in-progress* (+ 1 *http-requests-in-progress*)))
;; serverdat contains uuid to be used for connection validation
;;
;; NOTE: serverdat must be initialized or created by servdat-init
;;
#;(define (http-transport:send-receive sdat qry-key cmd params #!key (numretries 3))
(let* ((res #f)
(success #t)
(sparams (with-output-to-string
(lambda ()(write params)))))
;; send the data and get the response extract the needed info from
;; the http data and process and return it.
(let* ((send-recieve (lambda ()
|