diff options
author | Valery Piashchynski <[email protected]> | 2021-08-03 13:36:31 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-03 13:36:31 +0300 |
commit | 606e2170ccac5a13a11198aaf54e4219a83291ab (patch) | |
tree | 6eeb30453e7a1582f339e78772d639f00115221c /pkg/transport/interface.go | |
parent | 31752d8bd20294c7d52cd3612fbf18e44ce42637 (diff) |
In a rare cases, when user set small timeout to allocate a worker,
spawned goroutine might stuck on the channel send operation and leak
memory.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/transport/interface.go')
-rw-r--r-- | pkg/transport/interface.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/transport/interface.go b/pkg/transport/interface.go index 7e3e5350..1b072378 100644 --- a/pkg/transport/interface.go +++ b/pkg/transport/interface.go @@ -8,7 +8,7 @@ import ( "github.com/spiral/roadrunner/v2/pkg/worker" ) -// Factory is responsible of wrapping given command into tasks WorkerProcess. +// Factory is responsible for wrapping given command into tasks WorkerProcess. type Factory interface { // SpawnWorkerWithTimeout creates new WorkerProcess process based on given command with context. // Process must not be started. |