General

Profile

mksm (Ricardo Amorim)

  • Login: mksm
  • Email: mksm@iddqd.su
  • Registered on: 03/25/2011
  • Last sign in: 07/05/2012

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

07/05/2012

02:19 PM Ruby Feature #6617: Net::HTTP: Bind to a specific local IP/port
@naruse: tests attached! It seems that local_host cannot be nil when setting local_port in TCPSocket.open.
@madeofcode: I also do not know, just followed the pattern. jballanc may have a point, but i can't see why there would be #defi...
mksm (Ricardo Amorim)

06/26/2012

03:44 AM Ruby Feature #6617: Net::HTTP: Bind to a specific local IP/port
The patch adds accessors for @local_host and @local_port and uses both in TCPSocket.open call. mksm (Ricardo Amorim)

06/22/2012

10:15 AM Ruby Feature #6617: Net::HTTP: Bind to a specific local IP/port
I agree. You can pass both local_ip and local_port to TCPSocket.open in Net::HTTP#connect.
Having the setter exposed would allow the user to change the local IP address between connections. Any ideas if this could cause problems with ...
mksm (Ricardo Amorim)

06/21/2012

11:15 AM Ruby Feature #6617 (Closed): Net::HTTP: Bind to a specific local IP/port
Despite having several solutions floating around the net, this feature is currently not present in Net::HTTP. I searched the issues but didn't find any discussion on this. How does the dev team feel about this? Can I submit a patch for r... mksm (Ricardo Amorim)

11/25/2011

12:54 AM Ruby Feature #2567: Net::HTTP does not handle encoding correctly
Yui NARUSE wrote:
> Is such a string always ISO-8859-1 other than non US/West Europe?
Yes, ISO-8859-1 always fits. I'm mainly accessing Brazilian servers so that explains.
> ...
With some more research, I got to this: http://tools...
mksm (Ricardo Amorim)

11/24/2011

01:01 PM Ruby Feature #2567: Net::HTTP does not handle encoding correctly
Yui NARUSE wrote:
> It shouldn't effect because URI doesn't include non ASCII character.
> ...
I've seen a few ASP applications that do that. They redirect to a generic error page with an error message as an argument. e.g. below:
Loca...
mksm (Ricardo Amorim)
11:25 AM Ruby Feature #2567: Net::HTTP does not handle encoding correctly
Also, response header values encoding are set to ASCII-8BIT. According to this: http://tools.ietf.org/html/rfc2616#section-2.2, it seems the default is ISO-8859-1. Having the values in ASCII-8BIT can cause issues when parsing the "Locati... mksm (Ricardo Amorim)
11:12 AM Ruby Feature #2567: Net::HTTP does not handle encoding correctly
Benoit Daloze wrote:
> I think Net::HTTP should not transcode (#encode) the response, just set the right encoding if the information is available.
I agree with the above and with Alex. Net::HTTP should only set the encoding (#force_e...
mksm (Ricardo Amorim)

11/19/2011

12:40 PM Ruby Feature #2567: Net::HTTP does not handle encoding correctly
Yui NARUSE wrote:
> The problem is stated in HTML5: misinterpreted for compatibility.
> ...
That link is stale as the specification is constantly being improved. I suggest http://www.w3.org/TR/html5/parsing.html#determining-the-charac...
mksm (Ricardo Amorim)

03/25/2011

07:08 AM Ruby Bug #4522 (Rejected): Net::HTTP persistent connections
Net::HTTP does not seem to follow HTTP 1.1 recommendations regarding persistent connections as per: http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html.
http://pastie.org/1710531 is a test script to reproduce the issue and inspect t...
mksm (Ricardo Amorim)

Also available in: Atom