Remove explicit setting of read_ahead for DTLS. It never makes sense not to
[openssl.git] / apps / s_client.c
index b1152aa362a5c28d7c064215bc85ee0a696b4930..8212c9fe4a52c03ba8e8100c6147bb94a6d6594c 100644 (file)
@@ -1295,12 +1295,6 @@ int MAIN(int argc, char **argv)
 #endif
     if (exc)
         ssl_ctx_set_excert(ctx, exc);
-    /*
-     * DTLS: partial reads end up discarding unread UDP bytes :-( Setting
-     * read ahead solves this problem.
-     */
-    if (socket_type == SOCK_DGRAM)
-        SSL_CTX_set_read_ahead(ctx, 1);
 
 #if !defined(OPENSSL_NO_TLSEXT)
 # if !defined(OPENSSL_NO_NEXTPROTONEG)