Skip to content

.Stop() is not stopping #5

@axtens

Description

@axtens

I've been having an issue driving both browsermob-proxy-2.1.0-beta-3 and browsermob-proxy-2.1.0-beta-4 with AutomatedTester namely that .Stop() is not terminating the java side of things nor is it terminating the CMD side of things either.

As a temporary measure, given my naivete, I've modified Stop as follows

    public void Stop()
    {            
        if (_serverProcess != null && !_serverProcess.HasExited)
        {
            _serverProcess.Kill();
            //_serverProcess.CloseMainWindow();
            //_serverProcess.Dispose();
            _serverProcess = null;
        }            
    }

I'm yet to see if this improves things or not. I fancy it leaves a lot of garbage lying around. Is there a better way of making sure that Stop really does Stop? Should I implement Abort and put the Kill in there?

I've also made _serverProcess public so that I can see what the process itself is up to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions