From e30e4415eedfb7f97db5de0490b64f01e0f1d5fe Mon Sep 17 00:00:00 2001
From: Ryan
Date: Thu, 18 Jun 2009 14:34:49 +0200
Subject: [PATCH 1/6] Fixes for ipv6
---
test-http_simple.js => http_simple.js | 0
src/net.cc | 20 +++---
test/test-tcp-pingpong.js | 92 +++++++++++++++------------
test_client.js | 41 ------------
4 files changed, 63 insertions(+), 90 deletions(-)
rename test-http_simple.js => http_simple.js (100%)
delete mode 100644 test_client.js
diff --git a/test-http_simple.js b/http_simple.js
similarity index 100%
rename from test-http_simple.js
rename to http_simple.js
diff --git a/src/net.cc b/src/net.cc
index 8148937c18..3b262b6283 100644
--- a/src/net.cc
+++ b/src/net.cc
@@ -42,14 +42,14 @@ using namespace node;
#define CLOSED_SYMBOL String::NewSymbol("closed")
static const struct addrinfo server_tcp_hints =
-/* ai_flags */ { AI_PASSIVE | AI_ADDRCONFIG
+/* ai_flags */ { AI_PASSIVE
/* ai_family */ , AF_UNSPEC
/* ai_socktype */ , SOCK_STREAM
, 0
};
static const struct addrinfo client_tcp_hints =
-/* ai_flags */ { AI_ADDRCONFIG
+/* ai_flags */ { 0
/* ai_family */ , AF_UNSPEC
/* ai_socktype */ , SOCK_STREAM
, 0
@@ -591,21 +591,21 @@ static void
SetRemoteAddress (Local
- encoding
is either node.constants.UTF8
- or node.constants.RAW
.
+ encoding
is either node.UTF8
+ or node.RAW
.
From 7ec90dbfd0aa8d36efc3f3e275b44281e1707286 Mon Sep 17 00:00:00 2001
From: Ryan
Date: Thu, 18 Jun 2009 15:35:02 +0200
Subject: [PATCH 5/6] Clean up debug code in net.cc
---
src/net.cc | 23 +++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)
diff --git a/src/net.cc b/src/net.cc
index 3b262b6283..dc57992977 100644
--- a/src/net.cc
+++ b/src/net.cc
@@ -243,7 +243,8 @@ Connection::Resolve (eio_req *req)
{
Connection *connection = static_cast (req->data);
struct addrinfo *address = NULL;
- req->result = getaddrinfo(connection->host_, connection->port_, &client_tcp_hints, &address);
+ req->result = getaddrinfo(connection->host_, connection->port_,
+ &client_tcp_hints, &address);
req->ptr2 = address;
free(connection->host_);
@@ -264,29 +265,11 @@ AddressDefaultToIPv4 (struct addrinfo *address_list)
{
struct addrinfo *address = NULL;
-/*
- char ip4[INET_ADDRSTRLEN], ip6[INET6_ADDRSTRLEN];
- for (address = address_list; address != NULL; address = address->ai_next) {
- if (address->ai_family == AF_INET) {
- struct sockaddr_in *sa = reinterpret_cast(address->ai_addr);
- inet_ntop(AF_INET, &(sa->sin_addr), ip4, INET_ADDRSTRLEN);
- printf("%s\n", ip4);
-
- } else if (address->ai_family == AF_INET6) {
- struct sockaddr_in6 *sa6 = reinterpret_cast(address->ai_addr);
- inet_ntop(AF_INET6, &(sa6->sin6_addr), ip6, INET6_ADDRSTRLEN);
- printf("%s\n", ip6);
- }
- }
-*/
-
for (address = address_list; address != NULL; address = address->ai_next) {
if (address->ai_addr->sa_family == AF_INET) break;
}
- if (address == NULL) address = address_list;
-
- return address;
+ return address == NULL ? address_list : address;
}
int
From ec5f3dbae11ed121d24744861a8fce55636ecd66 Mon Sep 17 00:00:00 2001
From: Ryan
Date: Thu, 18 Jun 2009 23:22:31 +0200
Subject: [PATCH 6/6] bump version
---
website/index.html | 4 ++++
wscript | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/website/index.html b/website/index.html
index de0eaff468..d8e6faa6e8 100644
--- a/website/index.html
+++ b/website/index.html
@@ -154,6 +154,10 @@ Server running at http://127.0.0.1:8000/
git repo
+ -
+ 2009.06.18
+ node-0.0.5.tar.gz
+
-
2009.06.13
node-0.0.4.tar.gz
diff --git a/wscript b/wscript
index 2b40f64395..8d49a88118 100644
--- a/wscript
+++ b/wscript
@@ -8,7 +8,7 @@ from logging import fatal
import js2c
-VERSION='0.0.4'
+VERSION='0.0.5'
APPNAME='node'
srcdir = '.'