CBD-293: ignore config.cache

Change-Id: I55cef1d5f562680556de579c1e5db17ac81e1d6c
Reviewed-on: http://review.couchbase.org/16452
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-5389: Handle ENGINE_TMPFAIL for process_bin_get

Change-Id: Ia4210bf36e6d154f086ed1a66e14362e13fb6fc4
Reviewed-on: http://review.couchbase.org/16469
Reviewed-by: Dustin Sallings <dustin@spy.net>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-5279: stdin_check extention now does _Exit on die! command

So that ns_server can request urgent memcached death, e.g. after
failover.

Change-Id: I2eb19d414874c9c4dc0c3ea218c7d5bb714c11ae
Reviewed-on: http://review.couchbase.org/16445
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5259 Refactor isasl password refresh

Change-Id: I7a7b8e9358c74bfecfa4875c17748d2c6889cf3a
Reviewed-on: http://review.couchbase.org/16444
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5403:bp: handle very early memcached shutdown

If memcached shutdown is requested too early this will lead to
clock_handler not being set up. So actual shutdown will only happen
when some socket event happens which will cause event_hander to be
called which will exit event loop.

Original commit is: c8f5e90ff432d2f3b4db1991c403b8fa9824d284

Change-Id: Ia8f6d15779875ed230d85788434a0f28ea597838
Reviewed-on: http://review.couchbase.org/16631
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Dustin Sallings <dustin@spy.net>
MB-5595: Add more detailed debug output if sendmsg returns 0

Change-Id: Ic5050f87670a0947273dcb1e44e5e9a3ce0ec390
Reviewed-on: http://review.couchbase.org/17353
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Reviewed-by: Karan Kumar <karan@couchbase.com>
MB-5771 Return the correct status from parsing config options

Change-Id: I84e3dceec956fd177d84c92d3499962337281883
Reviewed-on: http://review.couchbase.org/17844
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Ignore empty chunks in call to add_iov

We've discovered that we may try to call sendmsg with an empty chunk
causing sendmsg to return 0 and we treat that as an error and close
the connection.

Change-Id: I8645fb9c766fdd7837136ff60efeafbfdd23f17f
Reviewed-on: http://review.couchbase.org/18711
Reviewed-by: Dustin Sallings <dustin@spy.net>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Farshid Ghods <farshid@couchbase.com>
Merge remote-tracking branch 'membase/couchbase-181' into merge

* membase/couchbase-181:
  Ignore empty chunks in call to add_iov
  MB-5771 Return the correct status from parsing config options
  MB-5595: Add more detailed debug output if sendmsg returns 0
  MB-5403:bp: handle very early memcached shutdown
  MB-5259 Refactor isasl password refresh
  MB-5279: stdin_check extention now does _Exit on die! command
  MB-5389: Handle ENGINE_TMPFAIL for process_bin_get
  CBD-293: ignore config.cache

Change-Id: I7e57af4aa8cbf7082f0c8688f37cd722460dc4c7