Hi, Arunas: To confirm, no, there is no way to override the threshhold on closing the connection for large reads.
The recommendation is to get large documents as single requests and to page over smaller documents in batches smaller than the threshhold. Erik Hennum ________________________________ From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] on behalf of Arunas [aruna...@gmail.com] Sent: Monday, July 17, 2017 10:05 AM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Docs REST api: Content Length and Keep Alive headers ommited on bigger files Dear All, We are using the documents management /v1/documents REST endpoint to retrieve documents in multipart/mixed content type. It works as expected with a retrieval of smaller documents and returns headers with a response like so: HTTP/1.1 200 OK vnd.marklogic.document-format: binary Content-type: multipart/mixed; boundary=ML_BOUNDARY_11510717316849072801 ML-Effective-Timestamp: 15003098405343020 Content-Length: 15684 Server: MarkLogic Connection: Keep-Alive Keep-Alive: timeout=500 However, on a retrieval of bigger size documents Content-Length & Keep-Alive headers are ommited, Connection header is set to "Close" like so: HTTP/1.1 200 OK vnd.marklogic.document-format: binary Content-type: multipart/mixed; boundary=ML_BOUNDARY_4647702192025548700 ML-Effective-Timestamp: 15003103202328660 Server: MarkLogic Connection: close I obviously done the homework and found somewhat helpful KB article here: https://help.marklogic.com/knowledgebase/article/View/465/0/content-length-keepalive-and-connection-close, mentioning that this is situational depending on the response size. However, it does not necessarilly tell me if there is any way to override the 1MB threshold. Is there any way to override this threshold as I fail to find one on admin interface or use a clever request headers to raise it? We are on v8.0-6.3 but I can also reproduce this on v9.0-1.1 MarkLogic Kind reagards, Arunas Vaitkus
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general