Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

TypeError when reconnecting unix-domain connection #261

Closed
dre3k opened this Issue Sep 17, 2011 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

dre3k commented Sep 17, 2011

    /home/dre/.bundler/ruby/1.9.1/eventmachine-edaeafee9564/lib/eventmachine.rb:764:in `connect_server': no implicit conversion from nil to integer (TypeError)
            from /home/dre/.bundler/ruby/1.9.1/eventmachine-edaeafee9564/lib/eventmachine.rb:764:in `reconnect'
            from /home/dre/.bundler/ruby/1.9.1/eventmachine-edaeafee9564/lib/em/connection.rb:617:in `reconnect'
            from /home/dre/.bundler/ruby/1.9.1/em-hiredis-ff07044584aa/lib/em-hiredis/client.rb:181:in `reconnect'
            from /home/dre/.bundler/ruby/1.9.1/em-hiredis-ff07044584aa/lib/em-hiredis/client.rb:31:in `block in connect'
            from /home/dre/.bundler/ruby/1.9.1/em-hiredis-ff07044584aa/lib/em-hiredis/event_emitter.rb:8:in `call'
            from /home/dre/.bundler/ruby/1.9.1/em-hiredis-ff07044584aa/lib/em-hiredis/event_emitter.rb:8:in `block in emit'
            from /home/dre/.bundler/ruby/1.9.1/em-hiredis-ff07044584aa/lib/em-hiredis/event_emitter.rb:8:in `each'
            from /home/dre/.bundler/ruby/1.9.1/em-hiredis-ff07044584aa/lib/em-hiredis/event_emitter.rb:8:in `emit'
            from /home/dre/.bundler/ruby/1.9.1/em-hiredis-ff07044584aa/lib/em-hiredis/connection.rb:27:in `unbind'
            from /home/dre/.bundler/ruby/1.9.1/eventmachine-edaeafee9564/lib/eventmachine.rb:1397:in `event_callback'
            from /home/dre/.bundler/ruby/1.9.1/eventmachine-edaeafee9564/lib/eventmachine.rb:186:in `release_machine'
            from /home/dre/.bundler/ruby/1.9.1/eventmachine-edaeafee9564/lib/eventmachine.rb:186:in `run'
            from socket_reconnect.rb:7:in `<main>'

Example app to reproduce this error: https://github.com/dre3k/socket_reconnect

dre3k added a commit to dre3k/eventmachine that referenced this issue Sep 17, 2011

tmm1 added a commit that referenced this issue Sep 17, 2011

Merge pull request #262 from dre3k/master
Fix reconnect on unix-domain connection #261

@dre3k dre3k closed this Sep 17, 2011

raggi added a commit that referenced this issue Sep 29, 2011

Merge branch 'master' into close_schedule_fix
* master: (146 commits)
  Fix reconnect on unix-domain connection #261
  Fix rake-compiler cross compiling issues for win32 gems
  Another compile warning
  Fix compile warning
  README grammar fix
  bump rake-compiler dependency
  Remove dependency on readbytes.rb for ruby 1.9 (fixes #167, #234)
  Fix compilation on MSVC2008 (fixes #253)
  fix code samples in iterator docs
  pull pause/resume logic down into EventableDescriptor
  test EM::Connection#pause on popen connections
  print out ssl errors to stdout before exploding
  Renaming EventMachine_t Closing to Deregister
  Watched sockets should still receive Closing
  Tweaking the patch to only affect socket shutdown and close. Ref: #242
  Alias Ruby C API methods for 1.8/1.9 compat
  Add pure-ruby implementations of EM::Connection#set_sock_opt and #get_sock_opt
  Implement EM::Connection#set_sock_opt
  Never close STDIN, STDOUT and STDERR (i.e. only close when fd > 2) Should solve #183
  Segfault fix for pipes
  ...

Conflicts:
	ext/em.cpp
	tests/test_basic.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment