"hostname" attribute should include port

Change-Id: If8e828002a861f3c1e2cd0037c6db56780c8ed8d
Reviewed-on: http://review.couchbase.org/12893
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Require SASL authentication for all operations

Change-Id: Ifcc3f284c43f95e94db732c6a884779912d4a7fd
Reviewed-on: http://review.couchbase.org/12899
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Fix QUIT command

Change-Id: If0affd4f3981dd452d9b98d4a7a64382d1f7039f
Reviewed-on: http://review.couchbase.org/13061
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix the buckets list url in '/pools/:poolName' handler

Change-Id: Id52208d6a3655b64ad69cfcd69c3d8d58a553e91
Reviewed-on: http://review.couchbase.org/13062
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Stop selecting for writable when there is no data

Also, explicitly check and throw exceptions for disconnections.

Change-Id: I4a3014d313f8f36ac35c1f5940ddd4418ff6b9bf
Reviewed-on: http://review.couchbase.org/13179
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix absolute expiry time

Change-Id: Iaf7011285ff676cc7c4c29c7abf5e874d1d4280b
Reviewed-on: http://review.couchbase.org/13264
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fixed write for large responses

Large responses need more than a single write() because they cannot fix
into the socket buffers

Change-Id: Ibf5839a303f15f58c7c7d46860efccb8c6518061
Reviewed-on: http://review.couchbase.org/13558
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
add 'hiccup' and 'truncate' commands to mock

Hiccup will force a delay for a response after sending <n> bytes
Truncate will only send up to <n> bytes for any output buffer

Change-Id: I89a441a62400c0ec82338c334b73450eede60d05
Reviewed-on: http://review.couchbase.org/13619
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Add support for GETK[q]

Change-Id: Ic56f99c23d3d68cbf48611186a1b27e0df9df197
Reviewed-on: http://review.couchbase.org/14036
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
Fixed concurrency control and race conditions

Fixed bug where HTTP server would skip updates for bucket configuration
changes.

Change-Id: Idb892b469412b2014fa7cf861f3c855af5b7481e
Reviewed-on: http://review.couchbase.org/14033
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Fix NetBeans rule for catch and finally

Change-Id: Iad5bb95c4c8c3246d0fd6451fff634f09ef2c26c
Reviewed-on: http://review.couchbase.org/14079
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>