Browse Source

Merge branch 'v0.9.7-release'

v0.9.8-release
isaacs 12 years ago
parent
commit
fa543da830
  1. 2
      AUTHORS
  2. 31
      ChangeLog
  3. 12
      doc/api/child_process.markdown
  4. 24
      src/node_buffer.cc
  5. 2
      src/node_version.h

2
AUTHORS

@ -401,3 +401,5 @@ Luke Bayes <lbayes@patternpark.com>
Nirk Niggler <nirk.niggler@gmail.com> Nirk Niggler <nirk.niggler@gmail.com>
James Hight <james@zavoo.com> James Hight <james@zavoo.com>
Mike Harsch <mike@harschsystems.com> Mike Harsch <mike@harschsystems.com>
Alexandr Emelin <frvzmb@gmail.com>
James Campos <james.r.campos@gmail.com>

31
ChangeLog

@ -1,4 +1,33 @@
2013.01.11, Version 0.9.6 (Unstable) 2013.01.18, Version 0.9.7 (Unstable)
* V8: Upgrade to 3.15.11.7
* npm: Upgrade to 1.2.2
* punycode: Upgrade to 1.2.0 (Mathias Bynens)
* repl: make built-in modules available by default (Felix Böhm)
* windows: add support for '_Total' perf counters (Scott Blomquist)
* cluster: make --prof work for workers (Ben Noordhuis)
* child_process: do not keep list of sent sockets (Fedor Indutny)
* tls: Follow RFC6125 more strictly (Fedor Indutny)
* buffer: floating point read/write improvements (Trevor Norris)
* TypedArrays: Improve dataview perf without endian param (Dean McNamee)
* module: assert require() called with a non-empty string (Felix Böhm, James Campos)
* stdio: Set readable/writable flags properly (isaacs)
* stream: Properly handle large reads from push-streams (isaacs)
2013.01.11, Version 0.9.6 (Unstable), 9313fdc71ca8335d5e3a391c103230ee6219b3e2
* V8: update to 3.15.11.5 * V8: update to 3.15.11.5

12
doc/api/child_process.markdown

@ -124,11 +124,10 @@ process may not actually kill it. `kill` really just sends a signal to a proces
See `kill(2)` See `kill(2)`
### child.send(message, [sendHandle], [options]) ### child.send(message, [sendHandle])
* `message` {Object} * `message` {Object}
* `sendHandle` {Handle object} * `sendHandle` {Handle object}
* `options` {Object}
When using `child_process.fork()` you can write to the child using When using `child_process.fork()` you can write to the child using
`child.send(message, [sendHandle])` and messages are received by `child.send(message, [sendHandle])` and messages are received by
@ -167,12 +166,7 @@ The `sendHandle` option to `child.send()` is for sending a TCP server or
socket object to another process. The child will receive the object as its socket object to another process. The child will receive the object as its
second argument to the `message` event. second argument to the `message` event.
The `options` object may have the following properties: #### Example: sending server object
* `track` - Notify master process when `sendHandle` will be closed in child
process. (`false` by default)
**send server object**
Here is an example of sending a server: Here is an example of sending a server:
@ -200,7 +194,7 @@ And the child would the receive the server object as:
Note that the server is now shared between the parent and child, this means Note that the server is now shared between the parent and child, this means
that some connections will be handled by the parent and some by the child. that some connections will be handled by the parent and some by the child.
**send socket object** #### Example: sending socket object
Here is an example of sending a socket. It will spawn two children and handle Here is an example of sending a socket. It will spawn two children and handle
connections with the remote address `74.125.127.100` as VIP by sending the connections with the remote address `74.125.127.100` as VIP by sending the

24
src/node_buffer.cc

@ -31,6 +31,30 @@
#include <float.h> // float limits #include <float.h> // float limits
#include <math.h> // infinity #include <math.h> // infinity
// Windows does not define INFINITY in math.h
// Copy V8's approach and use HUGE_VAL instead
#ifndef INFINITY
# ifdef HUGE_VALF
# define INFINITY HUGE_VALF
# else
// MSVC. No INFINITY, no HUGE_VALF
// There's HUGE_VAL, but that's a double, not a float.
// Assign the bytes and float-ify it.
typedef union { unsigned char __c[4]; float __f; } __huge_valf_t;
# if __BYTE_ORDER == __BIG_ENDIAN
# define __HUGE_VALF_bytes { 0x7f, 0x80, 0, 0 }
# endif
# if __BYTE_ORDER == __LITTLE_ENDIAN
# define __HUGE_VALF_bytes { 0, 0, 0x80, 0x7f }
# endif
static __huge_valf_t __huge_valf = { __HUGE_VALF_bytes };
# define INFINITY (__huge_valf.__f)
# endif
#endif
#define MIN(a,b) ((a) < (b) ? (a) : (b)) #define MIN(a,b) ((a) < (b) ? (a) : (b))
#define BUFFER_CLASS_ID (0xBABE) #define BUFFER_CLASS_ID (0xBABE)

2
src/node_version.h

@ -30,7 +30,7 @@
# define NODE_TAG "" # define NODE_TAG ""
#endif #endif
#define NODE_VERSION_IS_RELEASE 0 #define NODE_VERSION_IS_RELEASE 1
#ifndef NODE_STRINGIFY #ifndef NODE_STRINGIFY
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n) #define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)

Loading…
Cancel
Save