From 88fc0831cf60da58a9722ed343974b71b39bb0be Mon Sep 17 00:00:00 2001 From: beck <> Date: Sun, 10 May 2020 16:55:28 +0000 Subject: Conditionalize sleep-before-retry in server code to only be done when debug is on. otherwise, just retry. Fixes problems this creates in testing. ok jsing@ tb@ --- src/usr.bin/openssl/s_server.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/usr.bin/openssl/s_server.c') diff --git a/src/usr.bin/openssl/s_server.c b/src/usr.bin/openssl/s_server.c index 65cd36c54e..8b9512fdc3 100644 --- a/src/usr.bin/openssl/s_server.c +++ b/src/usr.bin/openssl/s_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_server.c,v 1.33 2020/04/19 17:05:55 jsing Exp $ */ +/* $OpenBSD: s_server.c,v 1.34 2020/05/10 16:55:28 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1727,8 +1727,10 @@ www_body(char *hostname, int s, unsigned char *context) ERR_print_errors(bio_err); goto err; } else { - BIO_printf(bio_s_out, "read R BLOCK\n"); - sleep(1); + if (s_debug) { + BIO_printf(bio_s_out, "read R BLOCK\n"); + sleep(1); + } continue; } } else if (i == 0) { /* end of input */ -- cgit v1.2.3-55-g6feb