Skip to content

Commit bc34bc8

Browse files
committed
/extmod/modussl_mbedtls.c: Removed call to setnonblocking()
1 parent 324d28c commit bc34bc8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

extmod/modussl_mbedtls.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ struct ssl_args {
6565
};
6666

6767
STATIC const mp_obj_type_t ussl_socket_type;
68-
STATIC mp_obj_t socket_setblocking(mp_obj_t self_in, mp_obj_t flag_in);
6968

7069
static void mbedtls_debug(void *ctx, int level, const char *file, int line, const char *str) {
7170
printf("DBG:%s:%04d: %s\n", file, line, str);
@@ -162,7 +161,6 @@ STATIC mp_obj_ssl_socket_t *socket_new(mp_obj_t sock, struct ssl_args *args) {
162161
}
163162

164163
o->sock = sock;
165-
socket_setblocking(o, mp_const_true);
166164
mbedtls_ssl_set_bio(&o->ssl, o, _mbedtls_ssl_send, _mbedtls_ssl_recv, NULL);
167165

168166
if (args->key.u_obj != MP_OBJ_NULL) {
@@ -237,7 +235,6 @@ STATIC mp_uint_t socket_write(mp_obj_t o_in, const void *buf, mp_uint_t size, in
237235
return MP_STREAM_ERROR;
238236
}
239237

240-
241238
STATIC mp_obj_t socket_setblocking(mp_obj_t self_in, mp_obj_t flag_in) {
242239
mp_obj_ssl_socket_t *o = MP_OBJ_TO_PTR(self_in);
243240
mp_obj_t sock = o->sock;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy