It shall stay this way until we find memcached community finds a need for UPR. using dustin/gomemcached instead of prataprc/gomemcached. uprtrans.go contains transport related API for UPR. uprtrans_test.go contains corresponding test cases.
2014/02/03 16:23:34 Recieved 20000 mutations 140926 time lapse per mutation 2014/02/03 16:23:37 Recieved 40000 mutations 139522 time lapse per mutation 2014/02/03 16:23:39 Recieved 60000 mutations 128128 time lapse per mutation 2014/02/03 16:23:41 Recieved 80000 mutations 122561 time lapse per mutation
Attempting to document these showed how unnecessary they were.
I was concerned about a path where a connection pool reference got nilled and a connection returned to a missing pool would leak. I don't think this is likely, but I test for the cases specifically and verify the connection gets closed.
This is the amount of time we'll wait for a connection from the pool if there's not one immediately available before considering opening a new one.