cvs | 1 Dec 13:04 2009
Picon

bagder: curl/lib http.c,1.428,1.429

Update of /cvsroot/curl/curl/lib
In directory giant.haxx.se:/var/tmp/cvs-serv22085/lib

Modified Files:
	http.c 
Log Message:
- If the Expect: 100-continue header has been set by the application through
  curl_easy_setopt with CURLOPT_HTTPHEADER, the library should set
  data->state.expect100header accordingly - the current code (in 7.19.7 at
  least) doesn't handle this properly. Martin Storsjo provided the fix!

Index: http.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/http.c,v
retrieving revision 1.428
retrieving revision 1.429
diff -u -d -r1.428 -r1.429
--- http.c	18 Nov 2009 10:33:54 -0000	1.428
+++ http.c	1 Dec 2009 12:04:55 -0000	1.429
 <at>  <at>  -1981,17 +1981,24  <at>  <at> 
                           send_buffer *req_buffer)
 {
   CURLcode result = CURLE_OK;
+  const char *ptr;
   data->state.expect100header = FALSE; /* default to false unless it is set
                                           to TRUE below */
-  if(use_http_1_1(data, conn) && !checkheaders(data, "Expect:")) {
+  if(use_http_1_1(data, conn)) {
     /* if not doing HTTP 1.0 or disabled explicitly, we add a Expect:
-       100-continue to the headers which actually speeds up post
(Continue reading)

cvs | 1 Dec 13:04 2009
Picon

bagder: curl CHANGES,1.1789,1.1790 RELEASE-NOTES,1.1111,1.1112

Update of /cvsroot/curl/curl
In directory giant.haxx.se:/var/tmp/cvs-serv22085

Modified Files:
	CHANGES RELEASE-NOTES 
Log Message:
- If the Expect: 100-continue header has been set by the application through
  curl_easy_setopt with CURLOPT_HTTPHEADER, the library should set
  data->state.expect100header accordingly - the current code (in 7.19.7 at
  least) doesn't handle this properly. Martin Storsjo provided the fix!

Index: RELEASE-NOTES
===================================================================
RCS file: /cvsroot/curl/curl/RELEASE-NOTES,v
retrieving revision 1.1111
retrieving revision 1.1112
diff -u -d -r1.1111 -r1.1112
--- RELEASE-NOTES	29 Nov 2009 19:12:00 -0000	1.1111
+++ RELEASE-NOTES	1 Dec 2009 12:04:55 -0000	1.1112
 <at>  <at>  -28,6 +28,7  <at>  <at> 
  o SSL lib post-close write
  o curl failed to report write errors for tiny failed downloads
  o TFTP BLKSIZE
+ o Expect: 100-continue handling when set by the application

 This release includes the following known bugs:

 <at>  <at>  -39,6 +40,6  <at>  <at> 
  Yang Tse, Kamil Dudka, Christian Schmitz, Constantine Sapuntzakis,
  Marco Maggi, Camille Moncelier, Claes Jakobsson, Kevin Baughman,
(Continue reading)

cvs | 1 Dec 16:36 2009
Picon

yangtse: curl/tests httpsserver.pl,1.19,1.20

Update of /cvsroot/curl/curl/tests
In directory giant.haxx.se:/var/tmp/cvs-serv4991

Modified Files:
	httpsserver.pl 
Log Message:
Set socket option SO_REUSEADDR=true on stunnel accept'ing port

Index: httpsserver.pl
===================================================================
RCS file: /cvsroot/curl/curl/tests/httpsserver.pl,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- httpsserver.pl	28 Nov 2009 05:06:19 -0000	1.19
+++ httpsserver.pl	1 Dec 2009 15:36:34 -0000	1.20
 <at>  <at>  -23,6 +23,15  <at>  <at> 

 my $stuncert;

+my $ver_major;
+my $ver_minor;
+my $stunnel_version;
+my $socketopt;
+my $cmd;
+
+#***************************************************************************
+# Process command line options
+#
 while( <at> ARGV) {
(Continue reading)

cvs | 2 Dec 16:02 2009
Picon

yangtse: curl/tests/server tftpd.c,1.57,1.58

Update of /cvsroot/curl/curl/tests/server
In directory giant.haxx.se:/var/tmp/cvs-serv32531

Modified Files:
	tftpd.c 
Log Message:
signal handling to cleanup on SIGINT and SIGTERM

Index: tftpd.c
===================================================================
RCS file: /cvsroot/curl/curl/tests/server/tftpd.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- tftpd.c	26 Nov 2009 10:15:09 -0000	1.57
+++ tftpd.c	2 Dec 2009 15:02:30 -0000	1.58
 <at>  <at>  -99,11 +99,11  <at>  <at> 
 /* include memdebug.h last */
 #include "memdebug.h"

-#ifdef ENABLE_IPV6
-static bool use_ipv6 = FALSE;
-#endif
-static const char *ipv_inuse = "IPv4";
-static int serverlogslocked = 0;
+/*****************************************************************************
+*                      STRUCT DECLARATIONS AND DEFINES                       *
+*****************************************************************************/
+
+#define PKTSIZE (SEGSIZE + 4)  /* SEGSIZE defined in arpa/tftp.h */
(Continue reading)

cvs | 2 Dec 18:24 2009
Picon

kdudka: curl/lib nss.c,1.65,1.66

Update of /cvsroot/curl/curl/lib
In directory giant.haxx.se:/var/tmp/cvs-serv18738/lib

Modified Files:
	nss.c 
Log Message:
lib/nss.c: avoid use of uninitialized value

Index: nss.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/nss.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- nss.c	12 Nov 2009 11:16:31 -0000	1.65
+++ nss.c	2 Dec 2009 17:24:38 -0000	1.66
 <at>  <at>  -990,7 +990,9  <at>  <at> 
 {
   PRInt32 err;
   PRFileDesc *model = NULL;
-  PRBool ssl2, ssl3, tlsv1;
+  PRBool ssl2 = PR_FALSE;
+  PRBool ssl3 = PR_FALSE;
+  PRBool tlsv1 = PR_FALSE;
   struct SessionHandle *data = conn->data;
   curl_socket_t sockfd = conn->sock[sockindex];
   struct ssl_connect_data *connssl = &conn->ssl[sockindex];
 <at>  <at>  -1106,8 +1108,6  <at>  <at> 
   if(SSL_OptionSet(model, SSL_HANDSHAKE_AS_CLIENT, PR_TRUE) != SECSuccess)
     goto error;
(Continue reading)

cvs | 3 Dec 14:12 2009
Picon

yangtse: curl/tests ftpserver.pl,1.102,1.103

Update of /cvsroot/curl/curl/tests
In directory giant.haxx.se:/var/tmp/cvs-serv11101

Modified Files:
	ftpserver.pl 
Log Message:

signal handling to cleanup on SIGINT and SIGTERM

Index: ftpserver.pl
===================================================================
RCS file: /cvsroot/curl/curl/tests/ftpserver.pl,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- ftpserver.pl	30 Nov 2009 13:48:51 -0000	1.102
+++ ftpserver.pl	3 Dec 2009 13:12:04 -0000	1.103
 <at>  <at>  -122,16 +122,16  <at>  <at> 

 sub catch_zap {
     my $signame = shift;
-    print STDERR "ftpserver.pl received SIG$signame, exiting\n";
     ftpkillslaves(1);
+    unlink($pidfile);
     if($serverlogslocked) {
         $serverlogslocked = 0;
         clear_advisor_read_lock($SERVERLOGS_LOCK);
     }
-    die "Somebody sent me a SIG$signame";
+    exit;
(Continue reading)

cvs | 3 Dec 21:37 2009
Picon

yangtse: curl/tests/server tftpd.c,1.58,1.59

Update of /cvsroot/curl/curl/tests/server
In directory giant.haxx.se:/var/tmp/cvs-serv29560

Modified Files:
	tftpd.c 
Log Message:

Fix 'uploaded' file descriptor leak

Index: tftpd.c
===================================================================
RCS file: /cvsroot/curl/curl/tests/server/tftpd.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- tftpd.c	2 Dec 2009 15:02:30 -0000	1.58
+++ tftpd.c	3 Dec 2009 20:37:49 -0000	1.59
 <at>  <at>  -664,6 +664,8  <at>  <at> 
   struct testcase test;
   int result = 0;

+  memset(&test, 0, sizeof(test));
+
   while(argc>arg) {
     if(!strcmp("--version", argv[arg])) {
       printf("tftpd IPv4%s\n",
 <at>  <at>  -810,6 +812,11  <at>  <at> 
     sclose(peer);
     peer = CURL_SOCKET_BAD;

(Continue reading)

cvs | 4 Dec 22:53 2009
Picon

bagder: curl/docs KNOWN_BUGS,1.131,1.132

Update of /cvsroot/curl/curl/docs
In directory giant.haxx.se:/var/tmp/cvs-serv15727

Modified Files:
	KNOWN_BUGS 
Log Message:
74. The HTTP spec allows headers to be merged and become comma-separated
  instead of being repeated several times. This also include Authenticate: and
  Proxy-Authenticate: headers and while this hardly every happens in real life
  it will confuse libcurl which does not properly support it for all headers -
  like those Authenticate headers.

Index: KNOWN_BUGS
===================================================================
RCS file: /cvsroot/curl/curl/docs/KNOWN_BUGS,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -d -r1.131 -r1.132
--- KNOWN_BUGS	29 Nov 2009 23:14:56 -0000	1.131
+++ KNOWN_BUGS	4 Dec 2009 21:52:58 -0000	1.132
 <at>  <at>  -3,6 +3,12  <at>  <at> 
 changelog of the current development status, as one or more of these problems
 may have been fixed since this was written!

+74. The HTTP spec allows headers to be merged and become comma-separated
+  instead of being repeated several times. This also include Authenticate: and
+  Proxy-Authenticate: headers and while this hardly every happens in real life
+  it will confuse libcurl which does not properly support it for all headers -
+  like those Authenticate headers.
+
(Continue reading)

cvs | 7 Dec 21:25 2009
Picon

bagder: curl/tests/data test510,1.10,1.11 test565,1.3,1.4

Update of /cvsroot/curl/curl/tests/data
In directory giant.haxx.se:/var/tmp/cvs-serv11793/tests/data

Modified Files:
	test510 test565 
Log Message:
- Martin Storsjo made libcurl use the Expect: 100-continue header for posts
  with unknown size. Previously it was only used for posts with a known size
  larger than 1024 bytes.

Index: test510
===================================================================
RCS file: /cvsroot/curl/curl/tests/data/test510,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- test510	14 Sep 2007 19:32:31 -0000	1.10
+++ test510	7 Dec 2009 20:25:18 -0000	1.11
 <at>  <at>  -40,6 +40,7  <at>  <at> 
 Accept: */*
 Transfer-Encoding: chunked
 Content-Type: application/x-www-form-urlencoded
+Expect: 100-continue

 3
 one

Index: test565
===================================================================
RCS file: /cvsroot/curl/curl/tests/data/test565,v
(Continue reading)

cvs | 7 Dec 21:25 2009
Picon

bagder: curl CHANGES,1.1790,1.1791 RELEASE-NOTES,1.1112,1.1113

Update of /cvsroot/curl/curl
In directory giant.haxx.se:/var/tmp/cvs-serv11793

Modified Files:
	CHANGES RELEASE-NOTES 
Log Message:
- Martin Storsjo made libcurl use the Expect: 100-continue header for posts
  with unknown size. Previously it was only used for posts with a known size
  larger than 1024 bytes.

Index: RELEASE-NOTES
===================================================================
RCS file: /cvsroot/curl/curl/RELEASE-NOTES,v
retrieving revision 1.1112
retrieving revision 1.1113
diff -u -d -r1.1112 -r1.1113
--- RELEASE-NOTES	1 Dec 2009 12:04:55 -0000	1.1112
+++ RELEASE-NOTES	7 Dec 2009 20:25:17 -0000	1.1113
 <at>  <at>  -12,6 +12,7  <at>  <at> 
  o support SSL_FILETYPE_ENGINE for client certificate
  o curl-config can now show the arguments used when building curl
  o non-blocking TFTP
+ o send Expect: 100-continue for POSTs with unknown sizes

 This release includes the following bugfixes:

Index: CHANGES
===================================================================
RCS file: /cvsroot/curl/curl/CHANGES,v
retrieving revision 1.1790
(Continue reading)


Gmane