[#7500] Re: how to introduce reference objects into ruby — "Geert Fannes" <Geert.Fannes@...>

The problem with the code you sent is that you have to go through ALL

16 messages 2006/03/10

[#7553] "not" operator used in expression that is a method parameter can generate syntax error — noreply@...

Bugs item #3843, was opened at 2006-03-15 22:09

27 messages 2006/03/16
[#7554] Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error — nobu@... 2006/03/16

Hi,

[#7557] Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error — 卜部昌平 <shyouhei@...> 2006/03/16

Nobu, you are not answering to the question.... You have to unveil why

[#7559] Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error — Yukihiro Matsumoto <matz@...> 2006/03/16

Hi,

[#7560] Rant about keyword logical operators was : (Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error) — "Zev Blut" <rubyzbibd@...> 2006/03/16

Hello,

[#7565] Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error — mathew <meta@...> 2006/03/16

Yukihiro Matsumoto wrote:

[#7566] Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error — "Brian Mitchell" <binary42@...> 2006/03/16

On 3/16/06, mathew <meta@pobox.com> wrote:

[#7567] Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error — mathew <meta@...> 2006/03/16

Brian Mitchell wrote:

[#7568] Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error — "Brian Mitchell" <binary42@...> 2006/03/16

On 3/16/06, mathew <meta@pobox.com> wrote:

[#7614] PATCH: A subclassable Pathname — "Evan Phoenix" <evanwebb@...>

A simply change (changing all references of "Pathname.new" to

19 messages 2006/03/27
[#7618] Re: PATCH: A subclassable Pathname — Tanaka Akira <akr@...17n.org> 2006/03/27

In article <92f5f81d0603262350k796fe48fp2224b9f2108ac507@mail.gmail.com>,

[#7619] Re: PATCH: A subclassable Pathname — "Evan Phoenix" <evan@...> 2006/03/27

Quite right on the .glob and .getwd. I guess the tests don't test hit

[#7620] Re: PATCH: A subclassable Pathname — Tanaka Akira <akr@...17n.org> 2006/03/27

In article <92f5f81d0603270903g2fb02244i6a395be708dfffa3@mail.gmail.com>,

BUG? Ruby 1.8.4 readpartial oddities

From: ville.mattila@...
Date: 2006-03-31 08:49:36 UTC
List: ruby-core #7649
Hello Core,

We are using ruby  cvs. Both windows and linux

ruby 1.8.4 (2006-03-23)

On linux, server:
require 'socket'

puts "Ruby version is #{RUBY_VERSION} on #{`uname -a`.strip}"
socket = UDPSocket.new
socket.bind("0.0.0.0", 666)
puts "Listening to UDP socket port 666"

while(true) do
        puts "Read: #{socket.readpartial(10)}"
end


On windows 2000:

Sending traffic to the server with netcat like this:
nc -u <server_ip> 666
123456789
123456789
123456789
1234567890

Produces the following output:
Ruby version is 1.8.4 on Microsoft Windows [Version 5.2.3790]
Listening to UDP socket port 666
Read: 123456789
Read: 123456789
Read: 123456789
ruby_184_windows_readpartial.rb:9:in `readpartial': Invalid argument
(Errno::EINVAL)
        from ruby_184_windows_readpartial.rb:9

 This shouldn't fail with EINVAL.

On linux:

Sending traffic to the server with netcat like this:
nc -u <server_ip> 666
123456789
123456789
123456789
1234567890
12345678901
123456789012

Produces the following output:
Ruby version is 1.8.4 on Linux <server> 2.4.29+smp #1 SMP Fri Apr 15
12:06:52 UTC 2005 i686 GNU/Linux
Listening to UDP socket port 666
Read: 123456789
Read: 123456789
Read: 123456789
Read: 1234567890
Read: 1234567890
Read: 1234567890


Note that this behaviour is odd as well, it loses the remaining bytes from
the packets..
I would have expected to receive the 1 and the 12 from the packets in the
next readpartial calls,
 but maybe thats an UDP socket *feature* and not a bug. Ok, honestly, the
data should not go missing.
Most importantly though, the readpartial never raises Invalid argument like
it does on windows.




In This Thread

Prev Next