c851a13dbf
Implement web forking
2020-02-11 23:18:06 +01:00
bde5900826
Merge branch 'fifo'
2020-02-11 17:57:01 +01:00
Aaron Piotrowski
82ade8b128
Hide testing bool from public API
2020-02-11 10:38:30 -06:00
60e276fa8e
Merge branch 'fifo'
2020-02-11 15:04:13 +01:00
59dfc74967
Merge branch 'master' of github.com:amphp/parallel into fifo
2020-02-11 14:45:32 +01:00
6f78af6d09
Begin adding web forking
2020-02-11 14:45:11 +01:00
76853f0b78
Implement FIFO process hub
2020-02-10 23:33:17 +01:00
Aaron Piotrowski
4ed05f6aac
Improve error handling when sending and receiving
2020-02-10 12:29:27 -06:00
Aaron Piotrowski
17b6b6272f
Add void types were able
2019-08-27 18:14:56 -05:00
c73c6d0a77
Cleanup temporary files ( #82 )
...
Modified by @trowski.
2019-08-27 10:04:40 -05:00
Aaron Piotrowski
f919371aee
Don't swallow SynchronizationError in ContextException
2019-02-18 09:38:42 -06:00
Aaron Piotrowski
80c07011d6
Fix failing Process::join()
...
If the process is killed while joining, an exception was thrown from Process::kill().
2019-01-09 10:25:30 -06:00
Aaron Piotrowski
beafcdb140
Close channel in process when ended
...
Also restored destructor to DefaultPool to immediately kill workers instead of waiting until the end of the process.
2019-01-09 09:28:31 -06:00
Pieter Hordijk
354e64db09
Fixed typo in exception message
...
When the process cannot be started it tells me "Staring the process failed".
You can stare at a process all you want, but it should be "Starting".
2018-11-08 14:29:35 -06:00
Aaron Piotrowski
596f41886b
Return PID from Process::start()
2018-11-04 11:34:18 -06:00
Aaron Piotrowski
fe293c09bb
Improve process communication error handling
2018-10-23 22:14:51 -05:00
Aaron Piotrowski
f1b0a59b86
Final all the things!
2018-10-21 10:54:46 -05:00
Aaron Piotrowski
e72a50dc8d
Upgrade to latest amphp/process release
...
STDOUT and STDERR of a child process is no longer automatically piped to STDOUT and STDERR of the parent. Instead these streams are available on Context\Process for the user to determine how they should be handled.
2018-10-21 10:25:29 -05:00
Aaron Piotrowski
fa864692e7
Read key in chunks
...
Not entirely sure if this is necessary given the expected length, but it doesn't hurt either.
2018-10-11 18:11:02 -05:00
Aaron Piotrowski
4cf26d4dfb
Authenticate worker when connecting to IPC
2018-10-10 18:31:34 -05:00
Aaron Piotrowski
b654463339
Fix code style
2018-10-07 09:50:45 -05:00
Aaron Piotrowski
cb5ea736d4
Improve process IPC
...
Processes now use a shared server socket instead of stdin and stdout for IPC.
2018-10-07 09:31:35 -05:00
Niklas Keller
7326946884
Symlink PHARs if they don't have a .phar extension
2018-03-21 15:37:51 +01:00
Aaron Piotrowski
ed3662172d
Added signal() and getPid() methods to Process
2018-03-14 18:51:13 -05:00
Chris Wright
11a3e27db5
Escape script path in Process command ( #38 )
2018-01-31 18:31:36 +01:00
Syed Irfaq R. ⚡️
d2b9c03318
Fixes #35 ( #36 )
2018-01-22 16:15:09 -06:00
Niklas Keller
d16da4611e
Fix usage inside PHARs
2018-01-22 15:03:31 +01:00
Niklas Keller
cfd33799d7
Avoid cyclic references, fixes amphp/parallel-functions#5
2017-12-26 10:02:43 -06:00
Aaron Piotrowski
9e7d1e0801
Throw if sending task fails
2017-12-13 16:29:44 -06:00
Aaron Piotrowski
2a09f82f39
Add more process tests; exclude scripts from coverage
2017-12-13 13:56:11 -06:00
Aaron Piotrowski
8decdceb5d
Reorder Process constructor params
...
Shifted $binary to the end as it should rarely be needed.
2017-12-12 21:06:11 -06:00
Aaron Piotrowski
4d99a9d968
spawn → run
2017-12-10 17:01:10 -06:00
Aaron Piotrowski
4d4841f449
Refactor Process to make writing child processes simple
2017-12-10 16:39:49 -06:00
Aaron Piotrowski
4426686e54
Reorganize
2017-12-07 21:26:55 -06:00
Aaron Piotrowski
1adb63d906
Remove do*() private methods
...
Replaced with Amp\call().
2017-12-07 20:49:44 -06:00
Aaron Piotrowski
11a115670c
Only modify binary path if null
...
Also remove setting process options, as this is done in amphp/process anyway.
2017-12-06 16:01:11 -06:00
Aaron Piotrowski
e3b1cfd0cf
Allow custom binary path or locate binary
2017-12-05 18:21:39 -06:00
Aaron Piotrowski
3aff92fec4
Consolodate process and thread contexts into Context namespace
2017-11-29 15:01:32 -06:00