Skip to content

Commit

Permalink
Fix for deadlock with large report (#508)
Browse files Browse the repository at this point in the history
* add large xml sample

* Avoid deadlock

* Remove extra  whitespaces
  • Loading branch information
rhykw authored May 22, 2024
1 parent 0b46c18 commit 7aa2e14
Show file tree
Hide file tree
Showing 2 changed files with 45,743 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parsedmarc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,15 +1194,15 @@ def process_reports(reports_):
for proc in processes:
proc.start()

for conn in connections:
results.append(conn.recv())

for proc in processes:
proc.join()
if sys.stdout.isatty():
counter += 1
pbar.update(counter - pbar.n)

for conn in connections:
results.append(conn.recv())

for result in results:
if type(result[0]) is ParserError:
logger.error("Failed to parse {0} - {1}".format(result[1],
Expand Down
Loading

0 comments on commit 7aa2e14

Please sign in to comment.