IBM / go-sdk-core

The go-sdk-core repository contains core functionality required by Go code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
30 stars 24 forks source link

goroutine leak core.IamAuthenticator #108

Closed alexsniffin closed 3 years ago

alexsniffin commented 3 years ago

There appears to be a goroutine leak happening in iam_authenticator.go.

The function is spawning a goroutine which will then idle on the sending to the channel if the main goroutine executes the select statement before authenticator.invokeRequestTokenData() returns. The problem is default on L225 will exit the select statements scope before receiving the new token.

Profile: leak.pdf

padamstx commented 3 years ago

@pyrooka Could you please take a look at this issue?

ibm-devx-sdk commented 3 years ago

:tada: This issue has been resolved in version 5.4.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: