back to synchronous sendfile

Sun, 12 Aug 2018 10:09:31 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 12 Aug 2018 10:09:31 +0200
changeset 199
d62f2016cfe5
parent 198
2f845b5bda9d
child 200
4796fa483825

back to synchronous sendfile

src/server/safs/service.c file | annotate | diff | comparison | revisions
--- a/src/server/safs/service.c	Tue May 15 18:48:53 2018 +0200
+++ b/src/server/safs/service.c	Sun Aug 12 10:09:31 2018 +0200
@@ -637,15 +637,15 @@
         // send response header
         http_start_response(sn, rq);
         // send content
-        ret = send_range_aio(sn, rq, fd, offset, length, NULL, 0);
-        if(ret == REQ_PROCESSING) {
-            return ret;
-        }
-/*
+        // TODO: fix: send_range_aio is unstable
+        //ret = send_range_aio(sn, rq, fd, offset, length, NULL, 0);
+        //if(ret == REQ_PROCESSING) {
+        //    return ret;
+        //}
+        
         if(send_range(sn, fd, offset, length, NULL, 0)) {
             // TODO: error
         }
-//*/
     } else {
         ret = send_multi_range(sn, rq, fd, s.st_size, range);
         // TODO: error

mercurial