* libsoup/soup-session.c (finalize): free priv->user_agent.
#518798, Wouter Cloetens.
+ * tests/ssl-test.c: Re-revert the change from 2008-02-09; the
+ problem with ssl-test.c was not that soup_gnutls_init() wasn't
+ thread-safe, it's that the server thread doesn't do anything that
+ would ever cause soup_gnutls_init() to be called, and so if the
+ client thread doesn't start first, the server thread will run
+ without initializing GNUTLS.
+
2008-02-27 Benjamin Otte <otte@gnome.org>
* libsoup/soup-socket.c: (read_from_network), (soup_socket_read),
getsockname (listener, (struct sockaddr *)&sin, (void *)&sin_len);
port = ntohs (sin.sin_port);
- /* Now spawn server thread */
- server = g_thread_create (server_thread, GINT_TO_POINTER (listener),
- TRUE, NULL);
-
- /* And create the client */
+ /* Create the client */
addr = soup_address_new ("127.0.0.1", port);
creds = soup_ssl_get_client_credentials (NULL);
sock = soup_socket_new (SOUP_SOCKET_REMOTE_ADDRESS, addr,
soup_socket_start_ssl (sock, NULL);
+ /* Now spawn server thread */
+ server = g_thread_create (server_thread, GINT_TO_POINTER (listener),
+ TRUE, NULL);
+
/* Synchronous client test */
for (i = 0; i < BUFSIZE; i++)
writebuf[i] = i & 0xFF;