[#3861] super — ts <decoux@...>
[#3862] Marshal.dump'ing OpenStruct objects — Mauricio Fern疣dez <batsman.geo@...>
Hi,
[#3881] mkdir, mkdir_p in FileUtils and mode — Florian Frank <flori@...>
Hello,
[#3907] Obtaining mode information on an IO object — Jos Backus <jos@...>
The attached patch implements IO#mode. This method returns the mode the IO
Hi,
On Tue, Dec 07, 2004 at 09:25:13AM +0900, nobu.nokada@softhome.net wrote:
Jos Backus wrote:
Hi,
On Thu, Dec 09, 2004 at 10:47:48AM +0900, nobu.nokada@softhome.net wrote:
On Thu, Dec 09, 2004 at 02:40:33PM +0900, James Britt wrote:
[#3914] Pathname needs a makeover — "Berger, Daniel" <Daniel.Berger@...>
Hi all,
[#3922] Incorrect escaping in strings produced by String::inspect — noreply@...
Bugs item #1173, was opened at 2004-12-08 17:35
[#3966] unknown node type 0 — Andrew Walrond <andrew@...>
I still get this happening a lot with my Rubyx linux ruby script.
This is a long standing bug in Ruby, and has been reported hundreds of times
Hi,
[#3975] Patches to test/unit — Ryan Davis <ryand-ruby@...>
I believe these are the minimal patches needed to make it possible to
[#3982] Win32: rb_sys_fail() - errno == 0 — Florian Gro<florgro@...>
Moin!
[#4000] 1.8.2 preview4 — Yukihiro Matsumoto <matz@...>
Hello,
[#4009] cgi.rb -- more GET/POST stuff — mde@...26.com
First of all, I think it would be great, as Eustaquio suggests, to
GETs and POSTs are defined to be fairly different actions. I'd read
-----BEGIN PGP SIGNED MESSAGE-----
Francis Hwang wrote:
-----BEGIN PGP SIGNED MESSAGE-----
First of all, the entire discussion of when GET is appropriate
mde@state26.com wrote:
[#4027] Allowing custom number literal suffixes? — Florian Gro<florgro@...>
Moin!
Hi,
Mathieu Bouchard wrote:
Mathieu Bouchard wrote:
I'm not sure I would advocate making Ruby's grammar even more
>
Brent Roman wrote:
> Brent Roman wrote:
Brent Roman wrote:
> Florian Gross wrote:
Mathieu Bouchard wrote:
Mathieu Bouchard wrote:
[#4033] Garbage collection trouble — Christian Neukirchen <chneukirchen@...>
Hello,
>>>>> "C" == Christian Neukirchen <chneukirchen@gmail.com> writes:
ts <decoux@moulon.inra.fr> writes:
>>>>> "C" == Christian Neukirchen <chneukirchen@gmail.com> writes:
[#4040] Extensions, Internal — Jgen Mangler <juergen.mangler@...>
Hi,
[BUG] webrick
Webricks logging may cause it to fail on a valid http requests (on Mac
OS X).
$ hostname
rodin
$ ping rodin.local.
PING rodin.local (192.168.240.121): 56 data bytes
64 bytes from 192.168.240.121: icmp_seq=0 ttl=64 time=0.121 ms
64 bytes from 192.168.240.121: icmp_seq=1 ttl=64 time=0.137 ms
...
I wanted to show off ruby, dnssd, and webrick using Safari with this
script
##########
require 'dnssd'
require 'webrick'
include WEBrick
s = HTTPServer.new(
:Port => 8080,
:DocumentRoot => Dir::pwd
)
dnssd_s = DNSSD.register("RACC\032Presentation", "_http._tcp", nil,
8080) do |r|
warn("DNSSD Successfully Registered: #{r.inspect}")
end
trap("INT"){ dnssd_s.stop; s.shutdown }
s.start
###########
Webrick doesn't respond to the request 'http://rodin.local.:8080/' as
it should.
$ ruby -rubygems webserver.rb
[2004-12-13 20:26:59] INFO WEBrick 1.3.1
[2004-12-13 20:26:59] INFO ruby 1.8.1 (2003-12-25) [powerpc-darwin]
[2004-12-13 20:26:59] INFO WEBrick::HTTPServer#start: pid=5716
port=8080
DNSSD Successfully Registered: #<DNSSD::RegisterReply
RACC\026Presentation._http._tcp.local.>
[2004-12-13 20:27:40] ERROR SocketError: getnameinfo: nodename nor
servname provided, or not known
/usr/local/lib/ruby/1.8/webrick/server.rb:147:in `peeraddr'
/usr/local/lib/ruby/1.8/webrick/server.rb:147:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each'
/usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'
webserver.rb:17
------------------------------------------------------------
Here is a patch against the 1.8.1 source (problem exists with latest
source too):
server.rb
147,155c147,150
< begin
< addr = sock.peeraddr
< @logger.debug "accept: #{addr[3]}:#{addr[1]}"
< rescue SocketError
< @logger.debug "accept: <address unknown>"
< ensure
< call_callback(:AcceptCallback, sock)
< block ? block.call(sock) : run(sock)
< end
---
> addr = sock.peeraddr
> @logger.debug "accept: #{addr[3]}:#{addr[1]}"
> call_callback(:AcceptCallback, sock)
> block ? block.call(sock) : run(sock)
httprequest.rb
76,78d75
< rescue SocketError
< @peeraddr ||= []
< @addr ||= []
Is this patch ok?
-Charlie