Commit b7a76004 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Cleaned up hostname/name/gname and path/ppath confusion. Removed the fixed-

length limit of the hostname part of the URL.
parent 111a2f30
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -6,6 +6,16 @@

                                  Changelog

Daniel (19 April 2004)
- No more 512 byte limit for host name (inclusing name + password) in libcurl.
  An added bonus is that we use less memory for the typical (shorter URL)
  case.

- Cleaned up the sources to better use the terms 'hostname' and 'path'
  internally when referring to that data. The buffers used for keep that info
  is called 'namebuffer' and 'pathbuffer'. Much easier to read and understand
  than the previous mess.

Daniel (15 April 2004)
- Modified runtests.pl again to remove all log files in the log/ dir between
  each test, and then made -p display all non-zero byte files in the log dir.
@@ -19,7 +29,8 @@ Daniel (15 April 2004)
  Previously we had a fixed array for 100 levels, now we save space in each
  handle by allocating only for a few level by default and then enlarging that
  in case of need (with no maximum depth). Adjusted test case 142 to verify
  that 150 dir levels work fine.
  that 150 dir levels work fine.  An added bonus is that we use less memory
  for the typical (not very deep) case.

Daniel (14 April 2004)
- Asking for CURL_IPRESOLVE_V6 when ipv6 addresses can't be resolved will
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@ Curl and libcurl 7.11.2. A bugfix release.

This release includes the following changes:

 o removed maximum dir depth limit in the FTP code
 o removed maximum user+password+hostname size limit
 o removed maximum dir depth limit for FTP
 o the ares build now requires c-ares 1.2.0 or later
 o --tcp-nodelay and CURLOPT_TCP_NODELAY were added
 o curl/curlver.h contains the libcurl version info now
@@ -53,6 +54,7 @@ Other curl-related news since the previous public release:
   http://q-lang.sourceforge.net/
 o New German web mirror: http://curl.netmirror.org/
 o c-ares 1.2.0 was released: http://daniel.haxx.se/projects/c-ares/
 o New US web mirror: http://curl.signal42.com/

This release would not have looked like this without help, code, reports and
advice from friends like these:
+4 −4
Original line number Diff line number Diff line
@@ -1611,7 +1611,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn,
          newport = num;

          /* we should use the same host we already are connected to */
          newhostp = conn->name;
          newhostp = conn->hostname;
        }
      }                      
      else
@@ -2320,7 +2320,7 @@ CURLcode Curl_ftp(struct connectdata *conn)
  struct FTP *ftp;

  char *slash_pos;  /* position of the first '/' char in curpos */
  char *cur_pos=conn->ppath; /* current position in ppath. point at the begin
  char *cur_pos=conn->path; /* current position in ppath. point at the begin
                               of next path component */

  /* the ftp struct is already inited in ftp_connect() */
@@ -2343,7 +2343,7 @@ CURLcode Curl_ftp(struct connectdata *conn)
  /* parse the URL path into separate path components */
  while((slash_pos=strchr(cur_pos, '/'))) {
    /* 1 or 0 to indicate absolute directory */
    bool absolute_dir = (cur_pos - conn->ppath > 0) && (ftp->dirdepth == 0);
    bool absolute_dir = (cur_pos - conn->path > 0) && (ftp->dirdepth == 0);

    /* seek out the next path component */
    if (slash_pos-cur_pos) {
+2 −2
Original line number Diff line number Diff line
@@ -1150,8 +1150,8 @@ CURLcode Curl_http(struct connectdata *conn)
  CURLcode result=CURLE_OK;
  struct HTTP *http;
  struct Cookie *co=NULL; /* no cookies from start */
  char *ppath = conn->ppath; /* three previous function arguments */
  char *host = conn->name;
  char *ppath = conn->path;
  char *host = conn->hostname;
  const char *te = ""; /* tranfer-encoding */
  char *ptr;
  char *request;
+2 −2
Original line number Diff line number Diff line
@@ -544,7 +544,7 @@ static int Get_SSL_Session(struct connectdata *conn,
    if(!check->sessionid)
      /* not session ID means blank entry */
      continue;
    if(curl_strequal(conn->name, check->name) &&
    if(curl_strequal(conn->hostname, check->name) &&
       (conn->remote_port == check->remote_port) &&
       Curl_ssl_config_matches(&conn->ssl_config, &check->ssl_config)) {
      /* yes, we have a session ID! */
@@ -662,7 +662,7 @@ static int Store_SSL_Session(struct connectdata *conn,
  /* now init the session struct wisely */
  store->sessionid = ssl_sessionid;
  store->age = data->state.sessionage;    /* set current age */
  store->name = strdup(conn->name);       /* clone host name */
  store->name = strdup(conn->hostname);   /* clone host name */
  store->remote_port = conn->remote_port; /* port number */

  Curl_clone_ssl_config(&conn->ssl_config, &store->ssl_config);
Loading