<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/net/http, branch ruby_2_7</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) 07786edd66f59a529d6febb2e0fe901782991755,1917afa34bca55ba1ea578234132b7e4479ea3c9,0c611d7f4fce67c64bee4815f263c55ef15561c4:</title>
<updated>2020-09-29T22:50:06+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2020-09-29T22:50:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ea347990a5416c73a74f7dfa8a13b5ad5b7e79d4'/>
<id>ea347990a5416c73a74f7dfa8a13b5ad5b7e79d4</id>
<content type='text'>
	test/net/http/test_https.rb: Stop the error due to openssl 1.1.1h

	On some environments that uses OpenSSL 1.1.1h, the two tests now fail.

	http://rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/log/20200924T062352Z.fail.html.gz
	https://github.com/ruby/ruby/runs/1159288773?check_suite_focus=true

	```
	  1) Failure:
	TestNetHTTPS#test_get [/data/data/com.termux/files/home/cb/tmp/build/20200924T062352Z/ruby/test/net/http/test_https.rb:47]:
	&lt;"0\x82\x03\xED0\x82\x02\xD5\xA0\x03..."&gt; expected but was
	&lt;"0\x82\x03\xE30\x82\x02\xCB\xA0\x03..."&gt;.
	```

	Not sure why, but verify_callback now seems to receive only SERVER_CERT
	but not CA_CERT.
	It would be good to investigate the issue furthermore, but tentatively,
	I want to stop the failures.

	test/net/http/test_https.rb: the order of verify_callback seems to
	 vary

	... depending upon the environment.

	test/net/http/test_https.rb: The test logic was buggy

	The expected certs must be `[CA_CERT, SERVER_CERT]` before 1.1.1g and
	`[SERVER_CERT]` after 1.1.1h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	test/net/http/test_https.rb: Stop the error due to openssl 1.1.1h

	On some environments that uses OpenSSL 1.1.1h, the two tests now fail.

	http://rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/log/20200924T062352Z.fail.html.gz
	https://github.com/ruby/ruby/runs/1159288773?check_suite_focus=true

	```
	  1) Failure:
	TestNetHTTPS#test_get [/data/data/com.termux/files/home/cb/tmp/build/20200924T062352Z/ruby/test/net/http/test_https.rb:47]:
	&lt;"0\x82\x03\xED0\x82\x02\xD5\xA0\x03..."&gt; expected but was
	&lt;"0\x82\x03\xE30\x82\x02\xCB\xA0\x03..."&gt;.
	```

	Not sure why, but verify_callback now seems to receive only SERVER_CERT
	but not CA_CERT.
	It would be good to investigate the issue furthermore, but tentatively,
	I want to stop the failures.

	test/net/http/test_https.rb: the order of verify_callback seems to
	 vary

	... depending upon the environment.

	test/net/http/test_https.rb: The test logic was buggy

	The expected certs must be `[CA_CERT, SERVER_CERT]` before 1.1.1g and
	`[SERVER_CERT]` after 1.1.1h.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "lib/net/http/response.rb: support raw deflate correctly"</title>
<updated>2019-12-16T14:39:10+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2019-12-16T14:39:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=251f5d8226dbde06ba06e980e3b741b45ae3826d'/>
<id>251f5d8226dbde06ba06e980e3b741b45ae3826d</id>
<content type='text'>
This reverts commit 5105240b1e851410020b3b3f1a2bead7ffdd4291.

In RFC 2616:

```
   deflate
        The "zlib" format defined in RFC 1950 [31] in combination with
        the "deflate" compression mechanism described in RFC 1951 [29].
```

So "Content-Encoding: deflate" means zlib format, not raw deflate.

[Bug #11268]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 5105240b1e851410020b3b3f1a2bead7ffdd4291.

In RFC 2616:

```
   deflate
        The "zlib" format defined in RFC 1950 [31] in combination with
        the "deflate" compression mechanism described in RFC 1951 [29].
```

So "Content-Encoding: deflate" means zlib format, not raw deflate.

[Bug #11268]
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/net/http/response.rb: support raw deflate correctly</title>
<updated>2019-12-16T14:20:42+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2019-12-16T14:20:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5105240b1e851410020b3b3f1a2bead7ffdd4291'/>
<id>5105240b1e851410020b3b3f1a2bead7ffdd4291</id>
<content type='text'>
Net::HTTP had used `Zlib::Inflate.new(32 + Zlib::MAX_WBITS)` for all
content encoding (deflate, zlib, and gzip).
But the argument `32 + Zlib::MAX_WBITS` means zlib and gzip decoding
with automatic header detection, so (raw) deflate compression had not
been supported.

This change makes it support raw deflate correctly by passing an
argument `-Zlib::MAX_WBITS` (which means raw deflate) to
`Zlib::Inflate.new`.  All deflate-mode tests are fixed too.

[Bug #11268]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Net::HTTP had used `Zlib::Inflate.new(32 + Zlib::MAX_WBITS)` for all
content encoding (deflate, zlib, and gzip).
But the argument `32 + Zlib::MAX_WBITS` means zlib and gzip decoding
with automatic header detection, so (raw) deflate compression had not
been supported.

This change makes it support raw deflate correctly by passing an
argument `-Zlib::MAX_WBITS` (which means raw deflate) to
`Zlib::Inflate.new`.  All deflate-mode tests are fixed too.

[Bug #11268]
</pre>
</div>
</content>
</entry>
<entry>
<title>fix ipaddr parameter of Net::HTTP.start to support proxy</title>
<updated>2019-12-10T10:12:21+00:00</updated>
<author>
<name>NARUSE, Yui</name>
<email>naruse@airemix.jp</email>
</author>
<published>2019-12-10T10:06:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=af11efd377965b6601bb54aa79072ef0789dc525'/>
<id>af11efd377965b6601bb54aa79072ef0789dc525</id>
<content type='text'>
54072e329cab7207fba133caba4fc12b45add8f9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
54072e329cab7207fba133caba4fc12b45add8f9
</pre>
</div>
</content>
</entry>
<entry>
<title>test/net/http/test_https.rb (test_get_SNI_failure): stop proxy settings</title>
<updated>2019-12-10T00:41:33+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2019-12-10T00:41:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=660388f6c5b148ea6f84d589482391bf78f35c6b'/>
<id>660388f6c5b148ea6f84d589482391bf78f35c6b</id>
<content type='text'>
Because the test fails under HTTP proxy settings.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20191210T000004Z.fail.html.gz
```
  1) Failure:
TestNetHTTPS#test_get_SNI_failure [/export/home/users/chkbuild/cb-gcc/tmp/build/20191210T000004Z/ruby/test/net/http/test_https.rb:81]:
[OpenSSL::SSL::SSLError] exception expected, not #&lt;Net::HTTPServerException: 403 "Forbidden"&gt;.
```

The new SNI feature introduced at 54072e329c may need to be improved for
HTTP proxy environment.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because the test fails under HTTP proxy settings.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20191210T000004Z.fail.html.gz
```
  1) Failure:
TestNetHTTPS#test_get_SNI_failure [/export/home/users/chkbuild/cb-gcc/tmp/build/20191210T000004Z/ruby/test/net/http/test_https.rb:81]:
[OpenSSL::SSL::SSLError] exception expected, not #&lt;Net::HTTPServerException: 403 "Forbidden"&gt;.
```

The new SNI feature introduced at 54072e329c may need to be improved for
HTTP proxy environment.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add ipaddr optional parameter to Net::HTTP#start</title>
<updated>2019-12-09T11:21:49+00:00</updated>
<author>
<name>NARUSE, Yui</name>
<email>naruse@airemix.jp</email>
</author>
<published>2019-12-09T11:19:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=54072e329cab7207fba133caba4fc12b45add8f9'/>
<id>54072e329cab7207fba133caba4fc12b45add8f9</id>
<content type='text'>
to replace the address for TCP/IP connection [Feature #5180]

There're 3 layers of hostname:
* host address for TCP/IP
* TLS server name
* HTTP Host header value
To test DNS round robin or check server certificate from server local,
people sometimes want to connect server with given IP address but keep
TLS server name and HTTP Host header value.

closes [Feature #15215]
closes https://github.com/ruby/ruby/pull/1893
closes https://github.com/ruby/ruby/pull/1977
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to replace the address for TCP/IP connection [Feature #5180]

There're 3 layers of hostname:
* host address for TCP/IP
* TLS server name
* HTTP Host header value
To test DNS round robin or check server certificate from server local,
people sometimes want to connect server with given IP address but keep
TLS server name and HTTP Host header value.

closes [Feature #15215]
closes https://github.com/ruby/ruby/pull/1893
closes https://github.com/ruby/ruby/pull/1977
</pre>
</div>
</content>
</entry>
<entry>
<title>Ignore Errno::EPIPE when sending requests in net/http</title>
<updated>2019-09-27T14:43:32+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2019-06-20T19:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2b6a9f3a1ffcdb00bf89798979d475c6d189d419'/>
<id>2b6a9f3a1ffcdb00bf89798979d475c6d189d419</id>
<content type='text'>
An EPIPE when sending the request should be ignored.  Even if you
cannot write more data, you may still be able to read the server's
response.

Fixes [Bug #14466]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An EPIPE when sending the request should be ignored.  Even if you
cannot write more data, you may still be able to read the server's
response.

Fixes [Bug #14466]
</pre>
</div>
</content>
</entry>
<entry>
<title>Adding missing test for Net::HTTPGenericRequest initializer (#1835)</title>
<updated>2019-08-15T16:38:46+00:00</updated>
<author>
<name>Espartaco Palma</name>
<email>esparta@gmail.com</email>
</author>
<published>2019-08-15T16:38:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2665e5858f76e07ea8748a1931f500f961c5ceae'/>
<id>2665e5858f76e07ea8748a1931f500f961c5ceae</id>
<content type='text'>
A new exception is raised if an URI::HTTP is received and that object doesn't
have a hostname property.
Complementary to #1278</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A new exception is raised if an URI::HTTP is received and that object doesn't
have a hostname property.
Complementary to #1278</pre>
</div>
</content>
</entry>
<entry>
<title>Test missing Content-Type warnings</title>
<updated>2019-07-23T16:42:45+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-07-23T16:42:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=11662c70b073da21dcd5213b61434bce2ed6af8f'/>
<id>11662c70b073da21dcd5213b61434bce2ed6af8f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Show the caller's location</title>
<updated>2019-07-23T15:26:28+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-07-23T15:24:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c9826c20d204d4b8894e6fd51e5913959676776d'/>
<id>c9826c20d204d4b8894e6fd51e5913959676776d</id>
<content type='text'>
* lib/net/http/header.rb: show the caller's location instead of
  the current lines.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lib/net/http/header.rb: show the caller's location instead of
  the current lines.
</pre>
</div>
</content>
</entry>
</feed>
