Issue #3622 has been updated by Eric Hodel.

File expect-continue.3.diff added

With your latest patch if you do not set the continue_timeout after the s=
erver is started it does not wait for "100 Continue".

h =3D Net::HTTP.new host, port
h.continue_timeout =3D 10 # does nothing

With your latest patch Net::HTTP does not send the HTTP header immediatel=
y, it waits for the continue timeout first.

Placing wait_for_continue after sending headers fixes this.

Does Net::HTTP require additional RDoc?  I think the current comments for=
 the new methods are ok.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3622

----------------------------------------
http://redmine.ruby-lang.org
SW5kZXg6IGxpYi9uZXQvaHR0cC5yYgo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
Ci0tLSBsaWIvbmV0L2h0dHAucmIJKHJldmlzaW9uIDI5MjE5KQorKysgbGli
L25ldC9odHRwLnJiCSh3b3JraW5nIGNvcHkpCkBAIC01MTcsNiArNTE3LDcg
QEAgbW9kdWxlIE5ldCAgICM6bm9kb2M6CiAgICAgICBAc3RhcnRlZCA9IGZh
bHNlCiAgICAgICBAb3Blbl90aW1lb3V0ID0gbmlsCiAgICAgICBAcmVhZF90
aW1lb3V0ID0gNjAKKyAgICAgIEBjb250aW51ZV90aW1lb3V0ID0gbmlsCiAg
ICAgICBAZGVidWdfb3V0cHV0ID0gbmlsCiAgICAgICBAdXNlX3NzbCA9IGZh
bHNlCiAgICAgICBAc3NsX2NvbnRleHQgPSBuaWwKQEAgLTU3MCw2ICs1NzEs
MTYgQEAgbW9kdWxlIE5ldCAgICM6bm9kb2M6CiAgICAgICBAcmVhZF90aW1l
b3V0ID0gc2VjCiAgICAgZW5kCiAKKyAgICAjIFNlY29uZHMgdG8gd2FpdCBm
b3IgMTAwIENvbnRpbnVlIHJlc3BvbnNlLiAgSWYgdGhlIEhUVFAgb2JqZWN0
IGRvZXMgbm90CisgICAgIyByZWNlaXZlIGEgcmVzcG9uc2UgaW4gdGhpcyBt
YW55IHNlY29uZHMgaXQgc2VuZHMgd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gICB1bmxlc3MgcmVzLmtpbmRf
b2Y/KE5ldDo6SFRUUENvbnRpbnVlKQorICAgICAgICAgICAgdGhyb3cgOnJl
c3BvbnNlLCByZXMKKyAgICAgICAgICBlbmQKKyAgICAgICAgZW5kCisgICAg
ICBlbmQKKyAgICBlbmQKKwogICAgIGRlZiB3cml0ZV9oZWFkZXIoc29jaywg
dmVyLCBwYXRoKQogICAgICAgYnVmID0gIiN7QG1ldGhvZH0gI3twYXRofSBI
VFRQLyN7dmVyfVxyXG4iCiAgICAgICBlYWNoX2NhcGl0YWxpemVkIGRvIHxr
LHZ8CkluZGV4OiBsaWIvbmV0L3Byb3RvY29sLnJiCj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0KLS0tIGxpYi9uZXQvcHJvdG9jb2wucmIJKHJldmlzaW9uIDI5
MjE5KQorKysgbGliL25ldC9wcm90b2NvbC5yYgkod29ya2luZyBjb3B5KQpA
QCAtNTAsMTIgKzUwLDE0IEBAIG1vZHVsZSBOZXQgIyA6bm9kb2M6CiAgICAg
ZGVmIGluaXRpYWxpemUoaW8pCiAgICAgICBAaW8gPSBpbwogICAgICAgQHJl
YWRfdGltZW91dCA9IDYwCisgICAgICBAY29udGludWVfdGltZW91dCA9IG5p
bAogICAgICAgQGRlYnVnX291dHB1dCA9IG5pbAogICAgICAgQHJidWYgPSAn
JwogICAgIGVuZAogCiAgICAgYXR0cl9yZWFkZXIgOmlvCiAgICAgYXR0cl9h
Y2Nlc3NvciA6cmVhZF90aW1lb3V0CisgICAgYXR0cl9hY2Nlc3NvciA6Y29u
dGludWVfdGltZW91dAogICAgIGF0dHJfYWNjZXNzb3IgOmRlYnVnX291dHB1
dAogCiAgICAgZGVmIGluc3BlY3QKSW5kZXg6IHRlc3QvbmV0L2h0dHAvdGVz
dF9odHRwLnJiCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09P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CAnZXhwZWN0JyA9PiAnMTAwLWNvbnRpbnVl
Jykge3xyZXN8CisgICAgICAgIGFzc2VydF9lcXVhbCgnQk9EWScsIHJlcy5y
ZWFkX2JvZHkpCisgICAgICB9CisgICAgfQorICAgIGFzc2VydF9tYXRjaCgv
RXhwZWN0OiAxMDAtY29udGludWUvLCBAZGVidWcuc3RyaW5nKQorICAgIGFz
c2VydF9tYXRjaCgvSFRUUFwvMS4xIDEwMCBjb250aW51ZS8sIEBkZWJ1Zy5z
dHJpbmcpCisgIGVuZAorCisgIGRlZiB0ZXN0X2V4cGVjdF9jb250aW51ZV90
aW1lb3V0CisgICAgbW91bnRfcHJvYyB7fHJlcSwgcmVzfAorICAgICAgc2xl
ZXAgMC4yCisgICAgICByZXEuY29udGludWUgIyBqdXN0IGlnbm9yZWQgYmVj
YXVzZSBpdCdzICcxMDAnCisgICAgICByZXMuYm9keSA9IHJlcS5xdWVyeVsn
Ym9keSddCisgICAgfQorICAgIHN0YXJ0IHt8aHR0cHwKKyAgICAgIGh0dHAu
Y29udGludWVfdGltZW91dCA9IDAKKyAgICAgIGh0dHAucmVxdWVzdF9wb3N0
KCcvY29udGludWUnLCAnYm9keT1CT0RZJywgJ2V4cGVjdCcgPT4gJzEwMC1j
b250aW51ZScpIHt8cmVzfAorICAgICAgICBhc3NlcnRfZXF1YWwoJ0JPRFkn
LCByZXMucmVhZF9ib2R5KQorICAgICAgfQorICAgIH0KKyAgICBhc3NlcnRf
bWF0Y2goL0V4cGVjdDogMTAwLWNvbnRpbnVlLywgQGRlYnVnLnN0cmluZykK
KyAgICBhc3NlcnRfbWF0Y2goL0hUVFBcLzEuMSAxMDAgY29udGludWUvLCBA
ZGVidWcuc3RyaW5nKQorICBlbmQKKworICBkZWYgdGVzdF9leHBlY3RfY29u
dGludWVfZXJyb3IKKyAgICBtb3VudF9wcm9jIHt8cmVxLCByZXN8CisgICAg
ICByZXMuc3RhdHVzID0gNTAxCisgICAgICByZXMuYm9keSA9IHJlcS5xdWVy
eVsnYm9keSddCisgICAgfQorICAgIHN0YXJ0IHt8aHR0cHwKKyAgICAgIGh0
dHAuY29udGludWVfdGltZW91dCA9IDAKKyAgICAgIGh0dHAucmVxdWVzdF9w
b3N0KCcvY29udGludWUnLCAnYm9keT1FUlJPUicsICdleHBlY3QnID0+ICcx
MDAtY29udGludWUnKSB7fHJlc3wKKyAgICAgICAgYXNzZXJ0X2VxdWFsKCdF
UlJPUicsIHJlcy5yZWFkX2JvZHkpCisgICAgICB9CisgICAgfQorICAgIGFz
c2VydF9tYXRjaCgvRXhwZWN0OiAxMDAtY29udGludWUvLCBAZGVidWcuc3Ry
aW5nKQorICAgIGFzc2VydF9ub3RfbWF0Y2goL0hUVFBcLzEuMSAxMDAgY29u
dGludWUvLCBAZGVidWcuc3RyaW5nKQorICBlbmQKKworICBkZWYgdGVzdF9l
eHBlY3RfY29udGludWVfZXJyb3Jfd2hpbGVfd2FpdGluZworICAgIG1vdW50
X3Byb2Mge3xyZXEsIHJlc3wKKyAgICAgIHJlcy5zdGF0dXMgPSA1MDEKKyAg
ICAgIHJlcy5ib2R5ID0gcmVxLnF1ZXJ5Wydib2R5J10KKyAgICB9CisgICAg
c3RhcnQge3xodHRwfAorICAgICAgaHR0cC5jb250aW51ZV90aW1lb3V0ID0g
MC41CisgICAgICBodHRwLnJlcXVlc3RfcG9zdCgnL2NvbnRpbnVlJywgJ2Jv
ZHk9RVJST1InLCAnZXhwZWN0JyA9PiAnMTAwLWNvbnRpbnVlJykge3xyZXN8
CisgICAgICAgIGFzc2VydF9lcXVhbCgnRVJST1InLCByZXMucmVhZF9ib2R5
KQorICAgICAgfQorICAgIH0KKyAgICBhc3NlcnRfbWF0Y2goL0V4cGVjdDog
MTAwLWNvbnRpbnVlLywgQGRlYnVnLnN0cmluZykKKyAgICBhc3NlcnRfbm90
X21hdGNoKC9IVFRQXC8xLjEgMTAwIGNvbnRpbnVlLywgQGRlYnVnLnN0cmlu
ZykKKyAgZW5kCitlbmQKKwogPW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