Fix segfault when rebalancing. When a (!connected) server is reconnected, the tasks in its "pending" buffer will be moved into "output" buffer. If its connection is broken again immediately, relocate_packets() will go to wrong path.
Don't try to switch to backup nodes when timeout is reached
Fix compile error with sun studio.
172: error: statement not reached
Don't invoke HTTP callbacks after cancellation, because user code might assume a previously-freed resource is still valid
Check if SASL struct is valid before disposing
example/yajl/couchview.c: pass cookie to the command Fixes coredump when executing ./examples/yajl/couchview