View Ticket
Not logged in
2010-08-26
09:54 Add attachment winhttp.c to ticket [11622724e5] artifact: fd4ce405db user: anonymous
09:53 Ticket [11622724e5] implementation of function “popen2” on win32 status still Open with 1 other change artifact: 140db1c495 user: anonymous
09:08 Ticket [11622724e5]: 2 changes artifact: 3071145461 user: anonymous
09:04 Add attachment my_popen.h to ticket [11622724e5] artifact: ca27aac2bf user: anonymous
09:03 New ticket [11622724e5] implementation of function “popen2” on win32. artifact: f423675e92 user: anonymous

Ticket Hash: 11622724e5b46818396db583ac839391f70c8d64
Title: implementation of function “popen2” on win32
Status: Open Type: Feature_Request
Severity: Priority:
Subsystem: Resolution: Open
Last Modified: 2010-08-26 09:53:14
16.03 years ago
Created: 2010-08-26 09:03:10
16.03 years ago
Version Found In: current trunk
Description:
I use this function in winhttp.c to improve windows http server performance.

see my attachment.

Have a fun!


anonymous added on 2010-08-26 09:08:18:
Notice: The child processes must set "stdin" and "stdout" to binary mode when use pipe to pass binary data.

    _setmode(0, _O_BINARY);
    _setmode(1, _O_BINARY);

anonymous added on 2010-08-26 09:53:14:
And I have a suggestion that the subroutine "pclose2" is prone to confuse.

Such as in winhttp.c, if the parent does not close pOut in time, the child will block on reading the pipe until his parent close the pOut.


Attachments:

  • winhttp.c [download] added by anonymous on 2010-08-26 09:54:59. [details]
  • my_popen.h [download] added by anonymous on 2010-08-26 09:04:55. [details]