{5} Assigned, Active Tickets by Owner (Full Description) (9 matches)

List tickets assigned, group by ticket owner. This report demonstrates the use of full-row display.

raggi

Ticket Summary Component Milestone Type Created
Description
#5 Assertion `nbytes > 0' failed error None EventMachine "Framework" defect 02/22/08

Some users of Thin reported crashes with this in the logs:

ruby: ed.cpp:607: void ConnectionDescriptor::_WriteOutboundData(): Assertion `nbytes > 0' failed.

Any clue what's wrong?


#67 smtpserver crashing on HELP command None defect 08/08/08

EventMachine::Protocols::SmtpServer#receive_line? may call process_help, which isn't defined anywhere, causing an exception.


#33 [PATCH] EventMachine will segfault occasionally on program end None defect 06/26/08

If something interrupts EM currently during an unbind callback, EM will 'jump' to its release_machine block. At that point the Descriptors array is in a 'half finished' state, since it had been going through and deleting out members to be unbound. It therefore seg faults. This patch seems to do the trick [and, conveniently, might be slightly faster than the existing code, anyway]. Test included. Finally EM feels stable after this patch exists.


#66 set_comm_inactivity_timeout fails when called from initialize None defect 08/05/08

Not sure if this really is a bug and worth changing, but did surprise me a little. Calling it from post_init works fine.

require 'rubygems'
require 'eventmachine'

class MyServer < EM::Protocols::SmtpServer
  def initialize(*args)
    super
    self.set_comm_inactivity_timeout 240
  end
end

EM.run do
  EM.start_server "0.0.0.0", 2500, MyServer
end

Throws on connect:

/Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:1510:in `set_comm_inactivity_timeout': can't convert nil into String (TypeError)
	from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:1510:in `set_comm_inactivity_timeout'
	from duh.rb:7:in `initialize'
	from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:1237:in `new'
	from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:1235:in `instance_eval'
	from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:1235:in `new'
	from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:1074:in `event_callback'
	from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:224:in `run_machine'
	from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:224:in `run'
	from duh.rb:11

#80 Connection#send_data should use String#bytesize if it's there None defect 09/13/08

Connection#send_data currently uses String#length to figure out the size of the data chunk. This won't work on Ruby 1.9 since #length returns the character length of a string, not the byte length. When called with a string containing multibyte characters, EventMachine will only send part of the chunk. The same problem may be present in other parts of the EventMachine codebase.

A backwards-compatible fix would be to see if data responds to #bytesize and fall back to #length if it doesn't.


#9 Add SSL support to httpclient2 None enhancement 03/28/08

I needed to get some basic HTTPS functionality into the httpclient2 so I quickly hacked up this patch and it seems to work.


#25 Split out examples into separate files None enhancement 06/17/08

#39 improve set_effective_user None EventMachine "Framework" enhancement 06/28/08

swiftiply uses:

		def self.run_as(user = "nobody", group = "nobody")
			Process.initgroups(user,Etc.getgrnam(group).gid) if user and group
			::Process::GID.change_privilege(Etc.getgrnam(group).gid) if group
			::Process::UID.change_privilege(Etc.getpwnam(user).uid) if user
		rescue Errno::EPERM
			raise "Failed to change the effective user to #{user} and the group to #{group}"
		end

maybe add a EM.run_as that supports groups, and rescues EPERM (incase you're already running as non-root)


#29 JRuby caanot run the pure ruby version of EM 0.12 (with minor patch) None defect 06/20/08

JRuby fails to run the example echo server when in pure_ruby mode. Attached is a tarball with 1) the example app em.rb, 2) a small patch so 0.12 correctly runs in pure ruby mode, and 3) the output from running #1.

Essentially, it raises an ArgumentError? for IO.for_fd complaining that 1 argument was passed when 3 were expected.

This is likely a bug in JRuby 1.1.2 since it works fine under MatzRuby? 1.8.6 p111. A related ticket has been opened with the jruby folks (JRUBY-2687).


Note: See TracReports for help on using and creating reports.