[issue10711] Rip out HTTP 0.9 support

2010-12-16 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

+1 removing HTTP 0.9, and falling back to HTTP 1.0 behavior where ever it was 
HTTP 0.9. Removing support for response without status (which was acceptable by 
0.9) is fine. I reviewed the patch too and it seems good to go.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
title: Rip off HTTP 0.9 support - Rip out HTTP 0.9 support

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Here is a patch.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file20052/removehttp09.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +exarkun

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: http://bugs.python.org/file20052/removehttp09.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Added file: http://bugs.python.org/file20053/removehttp09.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

Would it be worth keeping (but modifying) test_http_0_9 to verify that the 
server complains in the expected way?

--
nosy: +stutzbach

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

Ripping HTTP 0.9 support _out_ flys directly in the face of be lenient in 
what you accept and strict in what you produce.

I do not mind removing support from http.server.  But http.client needs to be 
able to communicate with any random server created since the dawn of time.  
Often on 8 bit microcontrollers that haven't been updated since 1994.

How does keeping 0.9 client support in hurt us?

--
nosy: +gregory.p.smith

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

At minimum, I think we should apply this part of Antoine's patch:

-# Most web servers default to HTTP 0.9, i.e. don't send a status line.
-default_request_version = HTTP/0.9
+default_request_version = HTTP/1.0

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 But http.client needs to be able to communicate with any random server
 created since the dawn of time.

Well, that sounds a bit unreasonable...

 Often on 8 bit microcontrollers that haven't been updated since 1994.

Anyone with such needs should write specialized software, shouldn't they?

 How does keeping 0.9 client support in hurt us?

In any such situation, there's typically a long-term cost in additional 
maintenance when patching and improving the code.
More specifically, this issue came when discussing #6791. Protecting 
http.client against unbounded reads will be hairy if we have to support HTTP 
0.9-style simple responses.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Would it be worth keeping (but modifying) test_http_0_9 to verify that
 the server complains in the expected way?

Actually, I don't think the server will complain, since the request is legit. 
It will send back a full response with status line and headers, though, so the 
test has to be adapted indeed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Patch with adapted tests.

--
Added file: http://bugs.python.org/file20061/removehttp09-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

Given the 6961 issue I'm happy to change my position and say we nuke the 0.9 
client support.

Anyone who _needs_ that can grab this old code or write trivial code for their 
poor server's needs.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com