vesoft-inc/nebula-go

some invalid implement in session pool

lee-qiu opened this issue · 4 comments

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

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

Aiee commented

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!

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 commented

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