Skip to content

Initiator got stuck during stopping procedure #666

@filinvadim

Description

@filinvadim

First of all please excuse me for a lack of information - this is all i have honestly.

I have stopping function wrapper:

func stopInitiator() {
	stopChan := make(chan struct{})
	go func() {
		f.cli.Stop()
		close(stopChan)
	}()
	select {
	case <-stopChan:
	case <-time.After(time.Minute):
		panic("fix initiator stopping timeout")
	}
}

Expected behavior: successful initiator stopping.
Given behavior: initiator.Stop() method got stuck eternally -> panic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions