Yukihiro Matsumoto
10/5/2008 5:36:00 AM
Hi,
In message "Re: stream closed (IOError)"
on Sun, 5 Oct 2008 12:51:52 +0900, "Eric Will" <rakaur@malkier.net> writes:
|This code:
|
| puts "closed?: %s" % @socket.closed?.to_s
|
| begin
| @socket.close
| rescue Exception => e
| return
| rescue IOError => e
| return
| rescue Errno => e
| return
| end
|
|outputs this:
|
|closed?: false
|/Users/rakaur/Sources/wc/ruby/synapse/trunk/lib/xmppd/xmpp/stream.rb:231:in
|`ioloop': stream closed (IOError)
| from /Users/rakaur/Sources/wc/ruby/synapse/trunk/lib/xmppd.rb:196:in `loop'
| from /Users/rakaur/Sources/wc/ruby/synapse/trunk/lib/xmppd.rb:196:in `ioloop'
| from ./bin/xmppd:20
|praxis:trunk rakaur$
It's hard to tell without full executable script, but at least the
exception was raised _outside_ of your code snippet. I believe you
touched @socket after you closed it.
matz.