Skip to content

Releases: amphp/parallel

2.2.9

24 Mar 19:10
v2.2.9
73d293f
Compare
Choose a tag to compare

What's Changed

  • Fixed a race condition if outstanding accept calls were pending when closing SocketIpcHub.
  • Removed use of error-suppression operator to avoid warnings from mis-configured error handlers (#200).

Full Changelog: v2.2.8...v2.2.9

2.2.8

19 Mar 17:05
v2.2.8
efd71b3
Compare
Choose a tag to compare

What's Changed

  • Fixed race condition on concurrent IPC connect calls (#199)
    Thank you @Nadyita for reporting and debugging this issue.

2.2.7

16 Mar 16:20
v2.2.7
ffda869
Compare
Choose a tag to compare

What's Changed

  • Fixed cancelled tasks still being submitted to task workers.
  • Marked result and receive template types on Context as covariant.
  • Small improvements on examples by @thgs in #194

Full Changelog: v2.2.6...v2.2.7

2.2.6

07 Jan 18:47
v2.2.6
5aeaad2
Compare
Choose a tag to compare

What's Changed

  • Fixed hang during shutdown if a process or thread context has not ended (fixes amphp/file#75).

Full Changelog: v2.2.5...v2.2.6

2.2.5

27 Dec 18:58
v2.2.5
7b53bad
Compare
Choose a tag to compare

What's Changed

  • Fixed potential hang during shutdown if the process context returned from DefaultContextFactory was not shutdown.

Full Changelog: v2.2.4...v2.2.5

2.2.4

29 Nov 04:45
v2.2.4
8b8f33a
Compare
Choose a tag to compare

What's Changed

  • Fixed SocketIpcHub not removing the temporary socket file if the object was not explicitly closed before destruction (fixes #183).
  • Add previous exception message when fail to start process by @thgs in #192

New Contributors

  • @thgs made their first contribution in #192

Full Changelog: v2.2.3...v2.2.4

2.2.3

25 Nov 00:24
v2.2.3
223c47c
Compare
Choose a tag to compare

What's Changed

  • Fixed accepting a socket with SocketIpcHub::accept() after cancelling a prior accept operation.

Full Changelog: v2.2.2...v2.2.3

2.2.2

30 Aug 18:15
v2.2.2
f54bb40
Compare
Choose a tag to compare
  • Fixed potential hang of a ProcessContext created by DefaultContextFactory if output buffers fill by piping STDOUT and STDERR to the same pipes on the parent process. This also provides parity with the default behavior of ThreadContext.

2.2.1

22 May 04:16
v2.2.1
ba11031
Compare
Choose a tag to compare
  • Fixed simultaneous creation of workers in ContextWorkerPool.
  • Fixed the IPC pipe in ProcessContext closing immediately after the process exited which potentially prevented reading the last sent data.

2.2.0

13 May 14:17
v2.2.0
37850ff
Compare
Choose a tag to compare
  • Context::join() may now be called at any time instead of needing to wait until the context has sent or received all data on its channel.
  • The backtrace of exceptions thrown in child processes/threads is now included in the message of ContextPanicError, TaskFailureException, and TaskFailureError to avoid the backtrace being hidden from users due to PHP not calling Throwable::__toString() on previous exceptions. (#168)
  • Fixed assigning workers to waiting tasks submitted to ContextWorkerPool. Previously, in some circumstances two tasks may have been assigned to a single worker if both were enqueued when the worker finished a prior task. (#177)