diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-05-30 05:25:00 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-05-30 05:25:00 +0000 |
commit | 48dac274104859a973c06f02e2433c1075a573d3 (patch) | |
tree | 070a62344256f4373e55ab55f982bd975fa11829 /file_io/win32/pipe.c | |
parent | 45fb8fa88c530aec50689ebca8d42c02178f9123 (diff) | |
download | libapr-48dac274104859a973c06f02e2433c1075a573d3.tar.gz |
Modify our pipe semantics to match linux, such that at least 65536 bytes
may be written to the pipe before it deadlocks. Matches our 1.3 fix.
PR: 8179
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63449 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/win32/pipe.c')
-rw-r--r-- | file_io/win32/pipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/file_io/win32/pipe.c b/file_io/win32/pipe.c index 9d1a12841..1ccca5204 100644 --- a/file_io/win32/pipe.c +++ b/file_io/win32/pipe.c @@ -122,7 +122,7 @@ APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out (*out)->dataRead = 0; (*out)->direction = 0; - if (!CreatePipe(&(*in)->filehand, &(*out)->filehand, &sa, 0)) { + if (!CreatePipe(&(*in)->filehand, &(*out)->filehand, &sa, 65536)) { return apr_get_os_error(); } @@ -214,8 +214,8 @@ apr_status_t apr_create_nt_pipe(apr_file_t **in, apr_file_t **out, dwOpenMode, dwPipeMode, 1, //nMaxInstances, - 8182, //nOutBufferSize, - 8192, //nInBufferSize, + 0, //nOutBufferSize, + 65536, //nInBufferSize, 1, //nDefaultTimeOut, &sa); @@ -237,7 +237,7 @@ apr_status_t apr_create_nt_pipe(apr_file_t **in, apr_file_t **out, } else { /* Pipes on Win9* are blocking. Live with it. */ - if (!CreatePipe(&(*in)->filehand, &(*out)->filehand, &sa, 0)) { + if (!CreatePipe(&(*in)->filehand, &(*out)->filehand, &sa, 65536)) { return apr_get_os_error(); } } |