Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some invalid implement in session pool #243

Open
lee-qiu opened this issue Jan 9, 2023 · 4 comments
Open

some invalid implement in session pool #243

lee-qiu opened this issue Jan 9, 2023 · 4 comments

Comments

@lee-qiu
Copy link

lee-qiu commented Jan 9, 2023

I find some invalid implement in session pool, could you please take a look at them and I am willing to fix them when they are really invalid.

  1. why not use the ssl config in session pool config when open a new connection? and it seems that ssl config in session pool makes no use, it this right?
    if err := cn.open(cn.severAddress, pool.conf.timeOut, nil); err != nil {
  2. it seems this session will remain in active session queue, is this right?
    return nil, err

    return nil, err

    return nil, err
  3. it seems that connection is not closed when miss error after open, is it right?
    return nil, fmt.Errorf("failed to create a new session: %s", err.Error())

    return nil, fmt.Errorf(

    return nil, fmt.Errorf("failed to create a new session: %s", authResp.GetErrorMsg())

    return nil, err
@lee-qiu lee-qiu changed the title some invalid implement in session pool, some invalid implement in session pool Jan 9, 2023
@wey-gu
Copy link
Contributor

wey-gu commented Jan 9, 2023

Wow, amazing @lee-qiu !!!!
cc @Aiee

@Aiee
Copy link
Contributor

Aiee commented Jan 11, 2023

Hello @lee-qiu,

I have checked the issues you mentioned and it seems they are all valid. It would be great if you are willing to fix these!

@lee-qiu
Copy link
Author

lee-qiu commented Jan 12, 2023

Hello @lee-qiu,

I have checked the issues you mentioned and it seems they are all valid. It would be great if you are willing to fix these!

sure, I will fix them in next few days.

@wey-gu
Copy link
Contributor

wey-gu commented Sep 25, 2023

@lee-qiu how about fixing this in October for HACKTOBERFEST ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants