facebook/tornado — pull request #913 by tahajahangir (2013-10-13 17:45:48+00:00)
Title: Don't raise connection reset errors in `set_nodelay`

If connection was reset, `request.finish()` wrongly raises socket.error instead of ignoring the error.

The traceback looks like this:
```
File "our_application.py", line 350, in send_more
self.finish()
File "/usr/local/lib/python2.7/site-packages/tornado-3.1.dev2-py2.7.egg/tornado/web.py", line 761, in finish
self.request.finish()
File "/usr/local/lib/python2.7/site-packages/tornado-3.1.dev2-py2.7.egg/tornado/httpserver.py", line 485, in finish
self.connection.finish()
File "/usr/local/lib/python2.7/site-packages/tornado-3.1.dev2-py2.7.egg/tornado/httpserver.py", line 240, in finish
self.stream.set_nodelay(True)
File "/usr/local/lib/python2.7/site-packages/tornado-3.1.dev2-py2.7.egg/tornado/iostream.py", line 753, in set_nodelay
socket.TCP_NODELAY, 1 if value else 0)
File "/usr/local/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 54] Connection reset by peer
```