Fixed connection request and response data layouts.
Fix spec for start_connection/1.
Fixed interpret_reply_data(12, _Path, Reply) to return a proper list.
It had been using the list cons operator ([Head | Tail]), but was passing a non-list for Tail.
Fixed connection request and response data layouts.
Fix spec for start_connection/1.
Fixed interpret_reply_data(12, _Path, Reply) to return a proper list.
It had been using the list cons operator ([Head | Tail]), but was passing a non-list for Tail.
Merge branch 'fixes/proper_list'
Merge branch 'fixes/spec_start_connection'
Merge branch 'fixes/start_connection'
Changed ezk_connection:init to return {stop, Error} rather than {error, Error}.
Documented here: http://www.erlang.org/doc/man/gen_server.html#Module:init-1
Merge branch 'fixes/noserverreached'
correctly decode length of data as signed integer, skip split_binary/2 if -1
timeout after after a second if there is no reply when establishing a connection
Merge branch 'signedness' into campanja
export ezk_connection:start_link/1 similar to start/1
link to connection processes from connection manager, handle exits

spawn connections using ezk_connection:start_link/1 to keep track of
dying connections, on exit remove connection pids from our state.
Merge branch 'startlink' into campanja
set infinity timeout for start_connection/1,2,3 gen_server calls: connection workers may try reconnecting in init for a long time
Merge branch 'infinity' into campanja
cleanup tcp socket if handshake times out