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