The Authentication method says:
If you don't call it before calling one of the connection methods then it will be called for you on the first access.
And the Call method says
This will Authenticate if necessary, and re-authenticate if it receives a 401 error which means the token has expired
But if user create the connection object and use Call method directly, program will receive SIGSEGV,
because the conn.authLock member is not initialized yet. Other method like ObjectPut ObjectDelete also
suffer from this problem.
Although the sample code do call Authenticate after connection object construction. I thought the document may be
a little misleading. :D
The
Authenticationmethod says:And the
Callmethod saysBut if user create the connection object and use
Callmethod directly, program will receiveSIGSEGV,because the
conn.authLockmember is not initialized yet. Other method likeObjectPutObjectDeletealsosuffer from this problem.
Although the sample code do call
Authenticateafter connection object construction. I thought the document may bea little misleading. :D