Skip to content

It takes too long to kill with version 2.0 #61

@allenhwkim

Description

@allenhwkim

I rolled back to version 1 because it takes too much time to kill a process compared to version 1
It also throws an error if port is not found.

I think it's better to keep the existing logic to kill a port
lsof -i ${method === 'udp' ? 'udp' : 'tcp'}:${port} instead of using lsof -i -P, which takes too much time

IMO kill() must resolve when

  • when a port is found and kill
  • when a port is not found and nothing to kill

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions