Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 25, 2013
  1. @cvik
  2. @cvik

    Fix asymmetric error behaviour

    cvik authored
    The erlang zookeeper library, ezk, tries to handle errors by monitoring
    the erlang process that uses the connection. This is to ensure that the
    connection is shutdown if the using process for some reason terminates.
    However, if the connection dies by itself, there is no mechanism to inform
    the using process that there no longer exists a connection and it will
    experience a crash the next time it is executing any ezk commands, since
    it uses gen_server:call/3.
Commits on Nov 5, 2012
  1. Merge branch 'monitor-connection-notfound' into campanja

    Carl-Johan Kjellander authored
  2. @cvik

    Regression: Previous fix broke monitoring

    cvik authored
    refs #1169
Commits on Nov 1, 2012
  1. @cvik

    5/10 gen_server:cast in ezk_connection fail

    cvik authored
    Were causing function_clause crashes.
  2. @cvik
Commits on Oct 16, 2012
  1. remove sending to non-pids

    Carl-Johan Kjellander authored
    crasher:
      initial call: ezk_connection:init/1
      pid: <0.21879.2077>
      registered_name: []
      exception exit: {badarg,
                          [{ezk_connection,'-terminate/2-fun-1-',2,
                               [{file,"src/ezk_connection.erl"},{line,430}]},
                           {dict,map_bucket,2,[{file,"dict.erl"},{line,459}]},
                           {dict,map_bkt_list,2,[{file,"dict.erl"},{line,455}]},
                           {dict,map_bkt_list,2,[{file,"dict.erl"},{line,455}]},
                           {dict,map_seg_list,2,[{file,"dict.erl"},{line,450}]},
                           {dict,map_dict,2,[{file,"dict.erl"},{line,445}]},
                           {ezk_connection,terminate,2,
                               [{file,"src/ezk_connection.erl"},{line,429}]},
                           {gen_server,terminate,6,
                               [{file,"gen_server.erl"},{line,712}]}]}
        in function  gen_server:terminate/6 (gen_server.erl, line 715)
      ancestors: [ezk_connection_manager,ezk_sup,<0.165.0>]
      messages: []
      links: [<0.167.0>,<0.231.0>,#Port<0.603559>]
      dictionary: [{random_seed,{19138,20638,16384}}]
      trap_exit: true
      status: running
Commits on Oct 15, 2012
  1. Merge branch 'find-connection-bugs' into campanja

    Carl-Johan Kjellander authored
  2. again, remove sending to tuples cause it won't work

    Carl-Johan Kjellander authored
  3. Merge branch 'find-connection-bugs' into campanja

    Carl-Johan Kjellander authored
  4. try not to die from telling others to die

    Carl-Johan Kjellander authored
  5. typo

    Carl-Johan Kjellander authored
  6. fix bug, connections are tuples in State

    Carl-Johan Kjellander authored
  7. add one last extra safety to catch bugs

    Carl-Johan Kjellander authored
Commits on Oct 12, 2012
  1. try to find the culprit by adding is_pid() clauses to calls

    Carl-Johan Kjellander authored
Commits on Oct 11, 2012
  1. fix crash in ezk_con_man on end_connection/2

    Carl-Johan Kjellander authored
    If you check ezk_connection_manager:get_connections() you will get this
    result:
    
     {ok,[{<0.10234.2>,[]},{<0.210.0>,[]},{<0.196.0>,[]}]}
    
    However handle_info expects just a pid and not a tuple.
Commits on Oct 8, 2012
  1. handle die shutdown and unexpected calls

    Carl-Johan Kjellander authored
  2. handle unexpected info messages

    Carl-Johan Kjellander authored
Commits on Jun 25, 2012
  1. Merge remote-tracking branch 'epatey/master' into epatey

    Fabian Linzberger authored
Commits on Jun 19, 2012
  1. Merge branch 'hangconnection' into campanja

    Fabian Linzberger authored
  2. cleanup tcp socket if handshake times out

    Fabian Linzberger authored
  3. Merge branch 'infinity' into campanja

    Fabian Linzberger authored
  4. set infinity timeout for start_connection/1,2,3 gen_server calls: con…

    Fabian Linzberger authored
    …nection workers may try reconnecting in init for a long time
  5. Merge branch 'startlink' into campanja

    Fabian Linzberger authored
  6. link to connection processes from connection manager, handle exits

    Fabian Linzberger authored
    spawn connections using ezk_connection:start_link/1 to keep track of
    dying connections, on exit remove connection pids from our state.
  7. export ezk_connection:start_link/1 similar to start/1

    Fabian Linzberger authored
Commits on Jun 18, 2012
  1. Merge branch 'signedness' into campanja

    Fabian Linzberger authored
  2. timeout after after a second if there is no reply when establishing a…

    Fabian Linzberger authored
    … connection
  3. correctly decode length of data as signed integer, skip split_binary/…

    Fabian Linzberger authored
    …2 if -1
Commits on Feb 24, 2012
  1. @epatey
  2. @epatey
Commits on Feb 22, 2012
  1. @epatey
  2. @epatey
  3. @epatey
  4. @epatey

    Fixed interpret_reply_data(12, _Path, Reply) to return a proper list.

    epatey authored
    It had been using the list cons operator ([Head | Tail]), but was passing a non-list for Tail.
Something went wrong with that request. Please try again.