Remove ssync iter_hook usage
Apparently that disappeared and now the whole thing does on its own what this was trying to achieve. Change-Id: If20016cb80c855e3e8373de5d56926ef8f8e7dac
This commit is contained in:
@@ -14,11 +14,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
import eventlet
|
|
||||||
import eventlet.wsgi
|
|
||||||
import eventlet.greenio
|
|
||||||
|
|
||||||
from swift.common import bufferedhttp
|
from swift.common import bufferedhttp
|
||||||
from swift.common import exceptions
|
from swift.common import exceptions
|
||||||
from swift.common import http
|
from swift.common import http
|
||||||
@@ -288,7 +283,7 @@ class Sender(object):
|
|||||||
msg = '\r\n'.join(msg) + '\r\n\r\n'
|
msg = '\r\n'.join(msg) + '\r\n\r\n'
|
||||||
with exceptions.MessageTimeout(self.daemon.node_timeout, 'send_put'):
|
with exceptions.MessageTimeout(self.daemon.node_timeout, 'send_put'):
|
||||||
self.connection.send('%x\r\n%s\r\n' % (len(msg), msg))
|
self.connection.send('%x\r\n%s\r\n' % (len(msg), msg))
|
||||||
for chunk in df.reader(iter_hook=eventlet.sleep):
|
for chunk in df.reader():
|
||||||
with exceptions.MessageTimeout(
|
with exceptions.MessageTimeout(
|
||||||
self.daemon.node_timeout, 'send_put chunk'):
|
self.daemon.node_timeout, 'send_put chunk'):
|
||||||
self.connection.send('%x\r\n%s\r\n' % (len(chunk), chunk))
|
self.connection.send('%x\r\n%s\r\n' % (len(chunk), chunk))
|
||||||
|
Reference in New Issue
Block a user