SoYun Seong
November 24, 2020 03:46AM
# HG changeset patch
# User SoYun Seong <thdbsdox12@gmail.com>
# Date 1606128555 0
# Mon Nov 23 10:49:15 2020 +0000
# Node ID ce34097321cf3cb7f9de55075bd1788577bb1ad8
# Parent 3bbe4905410b04bdaad4c956f6fdb7d0612ddf5b
Make ngx_linux_sendfile() to global function

diff -r 3bbe4905410b -r ce34097321cf src/os/unix/ngx_linux.h
--- a/src/os/unix/ngx_linux.h Mon Nov 23 10:47:13 2020 +0000
+++ b/src/os/unix/ngx_linux.h Mon Nov 23 10:49:15 2020 +0000
@@ -12,5 +12,8 @@
ngx_chain_t *ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in,
off_t limit);

+ssize_t ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file,
+ size_t size);
+

#endif /* _NGX_LINUX_H_INCLUDED_ */
diff -r 3bbe4905410b -r ce34097321cf src/os/unix/ngx_linux_sendfile_chain.c
--- a/src/os/unix/ngx_linux_sendfile_chain.c Mon Nov 23 10:47:13 2020 +0000
+++ b/src/os/unix/ngx_linux_sendfile_chain.c Mon Nov 23 10:49:15 2020 +0000
@@ -10,9 +10,6 @@
#include <ngx_event.h>


-static ssize_t ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file,
- size_t size);
-
#if (NGX_THREADS)
#include <ngx_thread_pool.h>

@@ -226,7 +223,7 @@
}


-static ssize_t
+ssize_t
ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file, size_t size)
{
#if (NGX_HAVE_SENDFILE64)
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH 3 of 8] Make ngx_linux_sendfile() to global function

SoYun Seong 238 November 24, 2020 03:46AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready