@@ -151,22 +151,20 @@ def readline(self, size=-1):
151
151
)
152
152
153
153
def read (self , * args , ** kwargs ):
154
- """Read from the wrapped socket, with retry ."""
154
+ """Read from the wrapped socket."""
155
155
return self ._safe_call (
156
156
True ,
157
157
super (SSLFileobjectMixin , self ).read ,
158
158
* args , ** kwargs
159
159
)
160
160
161
161
def sendall (self , * args , ** kwargs ):
162
- """Send whole message to the socket. Unsupported, do not use."""
163
- # Not supported due to https://github.com/pyca/pyopenssl/issues/176.
164
- # Until that bug is fixed, sendall() may throw SSL.WantWriteError, but
165
- # there is no correct way to retry the call because we don't know how
166
- # many bytes were already transmitted. We could work around this by
167
- # reimplementing sendall() using send(), but we don't actually use
168
- # sendall() anywhere.
169
- raise NotImplementedError ('sendall() is unsupported by pyOpenSSL' )
162
+ """Send whole message to the socket."""
163
+ return self ._safe_call (
164
+ False ,
165
+ super (SSLFileobjectMixin , self ).sendall ,
166
+ * args , ** kwargs
167
+ )
170
168
171
169
def send (self , * args , ** kwargs ):
172
170
"""Send some part of message to the socket."""
0 commit comments