]> granicus.if.org Git - libevent/commit
test/ssl/bufferevent_wm: explicitly break the loop once client/server received enough
authorAzat Khuzhin <azat@libevent.org>
Sun, 3 Feb 2019 15:47:14 +0000 (18:47 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 3 Feb 2019 15:51:28 +0000 (18:51 +0300)
commitae9b285d2d7c9b898049072c157d50769d8014ea
tree540fd6d07e21a0795ab616e867fe1b6be69e4d55
parentb29207dceee33832bb28ab103a833df6a2fd29d3
test/ssl/bufferevent_wm: explicitly break the loop once client/server received enough

There can be tricky cases (that can be reproduced by reducing
SO_RCVBUF/SO_SNDBUF to 6144, on linux, and be aware, since linux doubles
this const), when there is still write event pending, although we read
enough.

This should be fixed in a more sophisticated way, but to backport the
patch, let's simply break the loop manually.

The ssl/bufferevent_wm originally failed on solaris.
test/regress_ssl.c