libsoup r914 - in trunk: . libsoup tests
- From: danw svn gnome org
- To: svn-commits-list gnome org
- Subject: libsoup r914 - in trunk: . libsoup tests
- Date: Thu, 8 Mar 2007 21:11:00 +0000 (GMT)
Author: danw
Date: 2007-03-08 21:11:00 +0000 (Thu, 08 Mar 2007)
New Revision: 914
ViewCVS link: http://svn.gnome.org/viewcvs/libsoup?rev=914&view=rev
Added:
trunk/tests/ssl-test.c
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/libsoup/soup-gnutls.c
trunk/tests/
trunk/tests/Makefile.am
Log:
* libsoup/soup-gnutls.c (do_handshake): don't return
G_IO_STATUS_AGAIN if we're doing blocking I/O; just keep retrying
until the handshake is complete.
(soup_gnutls_read, soup_gnutls_write): if we get
GNUTLS_E_REHANDSHAKE, call do_handshake() immediately rather than
returning G_IO_STATUS_AGAIN; if the socket is blocking then
G_IO_STATUS_AGAIN is wrong, and if the socket is non-blocking, we
might already need to return SOUP_SSL_ERROR_HANDSHAKE_NEEDS_WRITE
or SOUP_SSL_ERROR_HANDSHAKE_NEEDS_READ.
#415402, based on a patch from Jacob Berkman.
* tests/ssl-test.c: basic ssl test. In particular, tests that
rehandshake requests are handled correctly during both synchronous
and asynchronous I/O. Might eventually test other stuff too...
* configure.in:
* tests/Makefile.am: updates for ssl-test
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]