File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ cdef class _SSLPipe:
131
131
ssldata, appdata = self .feed_ssldata(b' ' )
132
132
assert appdata == [] or appdata == [b' ' ]
133
133
134
- cdef feed_ssldata(self , data, only_handshake = False ):
134
+ cdef feed_ssldata(self , data, bint only_handshake = False ):
135
135
""" Feed SSL record level data into the pipe.
136
136
137
137
The data must be a bytes instance. It is OK to send an empty bytes
@@ -500,8 +500,7 @@ class SSLProtocol(object):
500
500
self ._abort()
501
501
return
502
502
503
- for chunk in ssldata:
504
- self ._transport.write(chunk)
503
+ self ._transport.writelines(ssldata)
505
504
506
505
for chunk in appdata:
507
506
if chunk:
@@ -641,8 +640,7 @@ class SSLProtocol(object):
641
640
ssldata = sslpipe.shutdown(self ._finalize)
642
641
offset = 1
643
642
644
- for chunk in ssldata:
645
- self ._transport.write(chunk)
643
+ self ._transport.writelines(ssldata)
646
644
647
645
if offset < len (data):
648
646
self ._write_backlog[0 ] = (data, offset)
You can’t perform that action at this time.
0 commit comments