mirror of
https://github.com/curl/curl.git
synced 2026-08-04 23:56:13 +03:00
mime: fix unpausing of readers
When unpausing a transfer, check if the reader pause state differs in addition to the "keepon" flags. Reported-by: 包布丁 Fixes #18848 Closes #19178
This commit is contained in:
parent
76d2852550
commit
40f7cd2bdd
6 changed files with 68 additions and 14 deletions
|
|
@ -575,11 +575,13 @@ class Httpd:
|
|||
return
|
||||
local_dir = os.path.dirname(inspect.getfile(Httpd))
|
||||
out_dir = os.path.join(self.env.gen_dir, 'mod_curltest')
|
||||
in_source = os.path.join(local_dir, 'mod_curltest/mod_curltest.c')
|
||||
out_source = os.path.join(out_dir, 'mod_curltest.c')
|
||||
if not os.path.exists(out_dir):
|
||||
os.mkdir(out_dir)
|
||||
if not os.path.exists(out_source):
|
||||
shutil.copy(os.path.join(local_dir, 'mod_curltest/mod_curltest.c'), out_source)
|
||||
if not os.path.exists(out_source) or \
|
||||
os.stat(in_source).st_mtime > os.stat(out_source).st_mtime:
|
||||
shutil.copy(in_source, out_source)
|
||||
p = subprocess.run([
|
||||
self.env.apxs, '-c', out_source
|
||||
], capture_output=True, cwd=out_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue