Changeset 0a16644 in mod_gnutls


Ignore:
Timestamp:
Dec 2, 2019, 2:57:33 PM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
eed0c4b
Parents:
db82911
git-author:
Fiona Klute <fiona.klute@…> (12/02/19 14:56:09)
git-committer:
Fiona Klute <fiona.klute@…> (12/02/19 14:57:33)
Message:

https-test-client.py: Stop filtering after the first read block of data

If the erroneous log line shows up it's the first piece of data we
receive. Just copy everything after.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/https-test-client.py

    rdb82911 r0a16644  
    219219    poller.register(fd)
    220220
     221    init_done = False
    221222    run_loop = True
    222223    while run_loop:
     
    228229            if event & select.POLLIN or event & select.POLLPRI:
    229230                data = in_stream.read()
    230                 if cert_log in data:
    231                     data = data.replace(cert_log, b'')
     231                if not init_done:
     232                    # If the erroneous log line shows up it's the
     233                    # first piece of data we receive. Just copy
     234                    # everything after.
     235                    init_done = True
     236                    if cert_log in data:
     237                        data = data.replace(cert_log, b'')
    232238                out_stream.send(data)
    233239            if event & select.POLLHUP or event & select.POLLRDHUP:
Note: See TracChangeset for help on using the changeset viewer.