diff --git a/swift/proxy/controllers/account.py b/swift/proxy/controllers/account.py index 2d2aa36677..4ab57b1e2d 100644 --- a/swift/proxy/controllers/account.py +++ b/swift/proxy/controllers/account.py @@ -13,17 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# NOTE: swift_conn -# You'll see swift_conn passed around a few places in this file. This is the -# source httplib connection of whatever it is attached to. -# It is used when early termination of reading from the connection should -# happen, such as when a range request is satisfied but there's still more the -# source connection would like to send. To prevent having to read all the data -# that could be left, the source connection can be .close() and then reads -# commence to empty out any buffers. -# These shenanigans are to ensure all related objects can be garbage -# collected. We've seen objects hang around forever otherwise. - from swift import gettext_ as _ from urllib import unquote diff --git a/swift/proxy/controllers/container.py b/swift/proxy/controllers/container.py index 2c38ba44c1..18febc4d2e 100644 --- a/swift/proxy/controllers/container.py +++ b/swift/proxy/controllers/container.py @@ -13,17 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# NOTE: swift_conn -# You'll see swift_conn passed around a few places in this file. This is the -# source httplib connection of whatever it is attached to. -# It is used when early termination of reading from the connection should -# happen, such as when a range request is satisfied but there's still more the -# source connection would like to send. To prevent having to read all the data -# that could be left, the source connection can be .close() and then reads -# commence to empty out any buffers. -# These shenanigans are to ensure all related objects can be garbage -# collected. We've seen objects hang around forever otherwise. - from swift import gettext_ as _ from urllib import unquote diff --git a/swift/proxy/server.py b/swift/proxy/server.py index bcd0eb562c..6ee229a849 100644 --- a/swift/proxy/server.py +++ b/swift/proxy/server.py @@ -13,17 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# NOTE: swift_conn -# You'll see swift_conn passed around a few places in this file. This is the -# source httplib connection of whatever it is attached to. -# It is used when early termination of reading from the connection should -# happen, such as when a range request is satisfied but there's still more the -# source connection would like to send. To prevent having to read all the data -# that could be left, the source connection can be .close() and then reads -# commence to empty out any buffers. -# These shenanigans are to ensure all related objects can be garbage -# collected. We've seen objects hang around forever otherwise. - import mimetypes import os import socket