Browse Source

[ssl] don't exit early when there is no data to write; otherwise EOS stream handling is not triggered

Change-Id: Ie49fa1e7062f91c5708ae72db48c8e2144570f20
master
Stefan Bühler 5 years ago
parent
commit
c9a3764f12
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      src/modules/gnutls_filter.c
  2. +0
    -1
      src/modules/openssl_filter.c

+ 0
- 1
src/modules/gnutls_filter.c View File

@@ -396,7 +396,6 @@ static void do_gnutls_write(liGnuTLSFilter *f) {
* don't care if we write a little bit more than the limit allowed */
write_max = li_chunkqueue_limit_available(f->crypt_source.out);
LI_FORCE_ASSERT(write_max >= 0); /* we set a limit! */
if (0 == write_max) goto out;
/* if we start writing, try to write at least blocksize bytes */
if (write_max < blocksize) write_max = blocksize;



+ 0
- 1
src/modules/openssl_filter.c View File

@@ -401,7 +401,6 @@ static void do_ssl_write(liOpenSSLFilter *f) {
* don't care if we write a little bit more than the limit allowed */
write_max = li_chunkqueue_limit_available(f->crypt_source.out);
LI_FORCE_ASSERT(write_max >= 0); /* we set a limit! */
if (0 == write_max) goto out;
/* if we start writing, try to write at least blocksize bytes */
if (write_max < blocksize) write_max = blocksize;



Loading…
Cancel
Save