Re: [nodejs] Node.js multiple event loops with libuv and EventEmitter

2013-11-16 Thread Ben Noordhuis
On Sat, Nov 16, 2013 at 8:14 PM, João Henriques joao...@gmail.com wrote: I'm building a module to be used on a server application that does some heavy work on the background, and the best design I thought for not blocking node's main event loop was creating a new thread and a new event loop

Re: [nodejs] Node.js multiple event loops with libuv and EventEmitter

2013-11-16 Thread Ben Noordhuis
On Sat, Nov 16, 2013 at 10:02 PM, João Henriques joao...@gmail.com wrote: Do I need to clean the watcher i setted up or the garbage collector will handle it? You should close any libuv handles you create. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Convert time to human readable format

2013-11-15 Thread Ben Noordhuis
On Fri, Nov 15, 2013 at 2:50 PM, Ashutosh Das areos...@gmail.com wrote: How to convert this time to human readable format os.uptime() // - 1662.184427084 '' + new Date(Date.now() - os.uptime() * 1000) (Don't leave out the 'new' keyword. Calling Date() as a function returns the current time

Re: [nodejs] How to join Localized Sites Node.js

2013-11-15 Thread Ben Noordhuis
On Fri, Nov 15, 2013 at 4:13 PM, Nguyen Tung tungngu...@vsoft.vn wrote: I interest Node.js and establish group Node.js in Viet Nam 1 year ago. Now we have 650 people join group, been active and regular. On behalf of the community, I hope group node.js Viet Nam participation Localized Sites

[nodejs] Re: [Poll/RFC] Remove the built-in debugger

2013-11-13 Thread Ben Noordhuis
On Tue, Nov 12, 2013 at 4:38 PM, Ben Noordhuis i...@bnoordhuis.nl wrote: The built-in debugger is a major pain to keep working and some informal polling suggests that no one really uses it or is even aware that it exists. I'm toying with the idea of dropping it altogether and replacing

Re: [nodejs] Re: [Poll/RFC] Remove the built-in debugger

2013-11-13 Thread Ben Noordhuis
On Wed, Nov 13, 2013 at 1:20 AM, Andrey andrey.sido...@gmail.com wrote: I use it every day and fall back to node-inspector only when I really need to walk stack a lot. At the same time, I think it should not be part of node core and exist as npm-installable script. (I'm big fan of No [1], but

Re: [nodejs] Re: [Poll/RFC] Remove the built-in debugger

2013-11-13 Thread Ben Noordhuis
On Wed, Nov 13, 2013 at 1:12 PM, Andrey andrey.sido...@gmail.com wrote: I meant client itself, not protocol, though they are very similar. Public api like client.reqScopes, client.reqEval, client.reqBacktace etc. A lot of project re-implement this functionality just because it's not documented.

[nodejs] Re: [Poll/RFC] Remove the built-in debugger

2013-11-13 Thread Ben Noordhuis
On Wed, Nov 13, 2013 at 12:47 PM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Tue, Nov 12, 2013 at 4:38 PM, Ben Noordhuis i...@bnoordhuis.nl wrote: The built-in debugger is a major pain to keep working and some informal polling suggests that no one really uses it or is even aware that it exists

Re: [nodejs] Advantages of Node.js over Java for my application

2013-11-12 Thread Ben Noordhuis
On Tue, Nov 12, 2013 at 2:42 AM, rameshbhom...@gmail.com wrote: We are developing a web based solution. The server side will have 3 million to 15 million user records.Each user record has a binary code (master code) which will be stored as part of the user record in the database. There

Re: [nodejs] sending memory across processes

2013-11-12 Thread Ben Noordhuis
On Tue, Nov 12, 2013 at 1:12 PM, Toni Wagner toni.wag...@viserion.com wrote: The scenario: 2 node instances, A B, (same server, different servers - no matter). I want to copy a variable (any kind) from A to B. As far as i know I have to serialize it, send it, and deserialize it. Now my

[nodejs] [Poll/RFC] Remove the built-in debugger

2013-11-12 Thread Ben Noordhuis
The built-in debugger is a major pain to keep working and some informal polling suggests that no one really uses it or is even aware that it exists. I'm toying with the idea of dropping it altogether and replacing it with some hooks for projects like node-inspector and node-webkit-agent because

Re: [nodejs] [Poll/RFC] Remove the built-in debugger

2013-11-12 Thread Ben Noordhuis
On Tue, Nov 12, 2013 at 4:52 PM, Paddy Byers paddy.by...@gmail.com wrote: Presumably this will kill the IntelliJ IDE (http://www.jetbrains.com/idea/features/nodejs.html) ? I'm fairly sure it talks to V8 directly. As long as --debug-brk keeps working, there should be no issue. Ditto for

Re: [nodejs] Re: [Poll/RFC] Remove the built-in debugger

2013-11-12 Thread Ben Noordhuis
On Tue, Nov 12, 2013 at 4:57 PM, Alex Kocharin a...@equenext.com wrote: Why is it pain to support anyway? I just did 'git log _debugger.js', and there aren't much changes there. I know that readline changes break it sometimes, but it's not a big deal. Take a look at the changes to src/ and

Re: [nodejs] Node.js + UDP = IP checksum offload

2013-11-10 Thread Ben Noordhuis
On Sun, Nov 10, 2013 at 11:24 AM, Nikita Martovs nikita.mart...@gmail.com wrote: var dgram = require('dgram'); var s = dgram.createSocket('udp4'); s.bind(5000); var message = new Buffer(Some bytes); s.send(message, 3, message.length-3, 5000, 192.168.1.10, function(err, bytes) {

Re: [nodejs] Need help for tracking down memory-leak(?)/gc(?)/programming error(?) in node-v0.10.21 (and other elder versions)

2013-11-09 Thread Ben Noordhuis
On Sat, Nov 9, 2013 at 9:49 PM, Peter Bauer p...@gas-o-lution.com wrote: Hi, I have some nodejs-program which uses up all memory available. When calling gc frequently, the problem can be avoided. But whithout gc the problem occurs regardless of architecture and node version (tried 0.10.5 and

Re: [nodejs] Does anyone got this message: Try --help for options: unrecognized flag -nouse-idle-notification

2013-11-07 Thread Ben Noordhuis
On Thu, Nov 7, 2013 at 10:51 AM, Carolin Etzold carolin.etz...@googlemail.com wrote: Does anyone got this message: Try --help for options: unrecognized flag -nouse-idle-notification ? And if so, can you tell me what it means? I tried to search for information about this, but without any

Re: [nodejs] Best way to read and write from a file simultaneously

2013-11-04 Thread Ben Noordhuis
On Sun, Nov 3, 2013 at 10:03 PM, Ralph Hühner noname...@googlemail.com wrote: Hi everbody, sorry for this very common question, but after hours of trying, testing and searching I have no idea where to find a solution for my issue (it is so simple to explain, it should even not need any source

Re: [nodejs] Best way to read and write from a file simultaneously

2013-11-04 Thread Ben Noordhuis
On Mon, Nov 4, 2013 at 3:45 PM, Matt hel...@gmail.com wrote: On Mon, Nov 4, 2013 at 5:05 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: There is no (native) way to implement tail(1)-like behavior except by polling the file for changes one way or the other (but then again, that's how most tail(1

Re: [nodejs] compiling node.js on qnap TS-269L

2013-11-03 Thread Ben Noordhuis
On Sun, Nov 3, 2013 at 4:37 PM, Marco Marigo marc.mar...@gmail.com wrote: I'm trying to build node.js (v0.10.21) from sources on my nas qnap [/share/MD0_DATA/src/node-v0.10.21] # uname -a Linux NASD73754 3.4.6 #1 SMP Fri Jul 26 08:07:08 CST 2013 x86_64 unknown I excecuted successfully

Re: [nodejs] Using node's networking code in native C++ apps

2013-10-31 Thread Ben Noordhuis
On Thu, Oct 31, 2013 at 7:55 AM, Kashyap CK ckkash...@gmail.com wrote: Hi, I was looking for a portable networking module for C++ and it appears that using node.js's networking code could be good. Has anyone attempted this? How easy would it be to pluck out the networking API of node out into

Re: [nodejs] Cross Compile nodejs for arm

2013-10-28 Thread Ben Noordhuis
On Mon, Oct 28, 2013 at 10:18 PM, Tom thomas.sp...@gmail.com wrote: Hello, I also tried to cross compile Node.js v0.10.21 for an arm platform called armadeus, following instructions given by Nathan here : http://n8.io/cross-compiling-nodejs-v0.8/ but it fails with the following error

Re: [nodejs] Re: Questions/suggestions for nodejs stream object mode

2013-10-24 Thread Ben Noordhuis
On Thu, Oct 24, 2013 at 3:12 PM, Floby florent.j...@gmail.com wrote: objectMode streams can push falsey values (other than null) since 10.19 or 10.20, I don't remember. That's correct, it was fixed in v0.10.19. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Core use of dns.lookup

2013-10-23 Thread Ben Noordhuis
On Wed, Oct 23, 2013 at 10:32 AM, Joran Dirk Greef jo...@ronomon.com wrote: I saw that dns.lookup uses getaddrinfo(3) which shares the thread pool with fs operations (https://github.com/joyent/node/issues/2868) and that the docs mention the following: All methods in the dns module use C-Ares

Re: [nodejs] IPC, forking a child_process for different version of nodejs?

2013-10-22 Thread Ben Noordhuis
On Tue, Oct 22, 2013 at 6:30 AM, Shiming He heshim...@gmail.com wrote: Dear Community, I'm using `require('child_process').fork('worker.js', {execPath: '/path/node'})` to offload some work in a separate process. My question is whether this child process can run in different version of nodejs?

Re: [nodejs] child processes inherit filehandles under cluster

2013-10-22 Thread Ben Noordhuis
On Tue, Oct 22, 2013 at 3:53 PM, Matt hel...@gmail.com wrote: I think this is a bug in node, but want to be sure before posting to the issue tracker. It seems that when spawning a child process while in a cluster worker, the child process inherits the worker's filehandles, no matter what you

Re: [nodejs] child processes inherit filehandles under cluster

2013-10-22 Thread Ben Noordhuis
On Tue, Oct 22, 2013 at 4:52 PM, Matt hel...@gmail.com wrote: Yeah I figured it wasn't the expected behaviour. Any way to work around it with current node releases? Maybe use an intermediate script that calls fs.closeSync() on file descriptors 3-1024 or so, then execs the target program? On

Re: [nodejs] Node v0.6.22 (Maintenance available?)

2013-10-19 Thread Ben Noordhuis
On Sat, Oct 19, 2013 at 11:26 AM, dvbportal dvbpor...@gmail.com wrote: Will there be a Node v0.6 maintenance release to fix the latest http vulnerability? Unlikely. v0.6 maintenance ended on December 31 2012. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: Node v0.10.21 (Stable)

2013-10-19 Thread Ben Noordhuis
On Sat, Oct 19, 2013 at 11:40 PM, Gabriel Falkenberg gabriel.falkenb...@gmail.com wrote: Is this the end of the versioning scheme mentioned on https://github.com/joyent/node/wiki/FAQ that even versions are stable and odd versions are unstable? We use major.minor.patch version numbers. It's

Re: [nodejs] EventEmitters in v0.10.20 are 2,7 times slower than in v0.10.13

2013-10-15 Thread Ben Noordhuis
On Tue, Oct 15, 2013 at 1:44 PM, Gagle gagle...@gmail.com wrote: Why? Any major changes? Have you introduced additional nextTick or setImmediate calls? CODE use strict; var events = require (events); var util = require (util); var speedy = require (../lib); var Emitter = function (){

Re: [nodejs] Any security modules that works like Java SecurityManager?

2013-10-11 Thread Ben Noordhuis
On Fri, Oct 11, 2013 at 8:26 AM, Selina Lai yingj...@gmail.com wrote: Can this Linux Container be configured in MIPS system? The server side will be running on MIPS. Yes, that should be no problem. The only requirement is that your kernel is new enough. You probably want at least 3.8 but

Re: [nodejs] passing socket problem (child_process or xinetd)

2013-10-10 Thread Ben Noordhuis
On Thu, Oct 10, 2013 at 4:07 PM, tedx txt...@gmail.com wrote: One other issue is that the service needs to terminate after servicing the request if after res.end() I call process.exit the client get a socket hangup error so I tried: req.connection.on('end', function() {

Re: [nodejs] Re: [Build Error] How to build nodejs on mipsel ?

2013-10-09 Thread Ben Noordhuis
On Wed, Oct 9, 2013 at 5:32 AM, Selina Lai yingj...@gmail.com wrote: Hi, I used gdb on linux but can't launch the executable file [selina@ipbs6 node-v0.10.20]$ gdb ~/images/nodes/bin/node GNU gdb (GDB) Fedora (7.3.50.20110722-16.fc16) Copyright (C) 2011 Free Software Foundation, Inc.

Re: [nodejs] Any security modules that works like Java SecurityManager?

2013-10-09 Thread Ben Noordhuis
On Wed, Oct 9, 2013 at 8:59 AM, Selina Lai yingj...@gmail.com wrote: Hi, I am new to nodejs. I want to build server/client applications that provide policy rules, security or like Java SecurityManager that provide many check functions. Client will send request to server and ask for some

Re: [nodejs] Re: [Build Error] How to build nodejs on mipsel ?

2013-10-09 Thread Ben Noordhuis
On Wed, Oct 9, 2013 at 11:57 AM, Selina Lai yingj...@gmail.com wrote: Hi Ben, The example output of 'cat' ./cat: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 =

Re: [nodejs] passing socket problem (child_process or xinetd)

2013-10-09 Thread Ben Noordhuis
On Wed, Oct 9, 2013 at 9:25 PM, tedx txt...@gmail.com wrote: I've written a nodejs http service that I've configured to run as an xinetd service (basically the service receives the connected socket as process.stdin/stdout). When the service runs it creates a http server and then emits a

Re: [nodejs] [Build Error] How to build nodejs on mipsel ?

2013-10-07 Thread Ben Noordhuis
On Mon, Oct 7, 2013 at 10:44 AM, Selina Lai yingj...@gmail.com wrote: I found it's my typo. My system is MIPSEL but I typed the command to mips-linux-gcc I can now 'make' without error. But when I execute './node hello.js' on the mipsel system. I got 'illegal instruction' error. I thus

Re: [nodejs] Monitor node.js GC

2013-10-03 Thread Ben Noordhuis
On Thu, Oct 3, 2013 at 4:23 PM, Bala sudheer Bheemarasetty balasudheer2...@gmail.com wrote: Hello , I want to monitor node,js GC data i am able to get node.js GC output through flags --trace-gc and --trace-gc-verbose but problem I am facing is that output is printing in console but I need

Re: [nodejs] Blind spots profiling node

2013-10-01 Thread Ben Noordhuis
On Wed, Oct 2, 2013 at 12:48 AM, Kenneth Gunn k...@161labs.com wrote: Hi! My team is developing a service in node. We are experiencing high CPU utilization and are attempting to profile, but are having a hard time getting a sufficient picture of what’s going on. We have experience

Re: [nodejs] Blind spots profiling node

2013-10-01 Thread Ben Noordhuis
On Wed, Oct 2, 2013 at 5:34 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Wed, Oct 2, 2013 at 12:48 AM, Kenneth Gunn k...@161labs.com wrote: Hi! My team is developing a service in node. We are experiencing high CPU utilization and are attempting to profile, but are having a hard time

Re: [nodejs] How should I bump gyp in node

2013-09-30 Thread Ben Noordhuis
On Mon, Sep 30, 2013 at 4:04 PM, A Random User ander02...@gmail.com wrote: Hello, I'm new to developing nodejs, though not programming it. I am in the process of updating nodejs to support visual studio 2013. It's a three part update: 1. Apply upstream patch to gyp to bump support to VS 2013

Re: [nodejs] significant RSS increase, and performance decrease, moving from node 0.8.x to 0.10.x

2013-09-27 Thread Ben Noordhuis
On Thu, Sep 26, 2013 at 7:34 PM, spollack s...@pollackphoto.com wrote: I got a chance to do some further testing on this. For our scenario, setting max_old_space_size certainly helped with both memory usage and performance under node 0.10.x, but over our full workload, under no value of

Re: [nodejs] How to push a task to Nodejs' V8 main thread ?

2013-09-25 Thread Ben Noordhuis
On Wed, Sep 25, 2013 at 9:04 AM, Ashish Negi thisismyidash...@gmail.com wrote: I found that doing uv_async_init(uv_default_loop, my_watcher); would call the callbacks with my_watcher on node thread. Is that right ? Provided you call uv_async_send() afterwards from the other thread,

Re: [nodejs] How to push a task to Nodejs' V8 main thread ?

2013-09-25 Thread Ben Noordhuis
On Wed, Sep 25, 2013 at 10:27 AM, Ashish Negi thisismyidash...@gmail.com wrote: Yaa that is working and i am able to execute simple js code = This definately implies that i am getting into v8 or node main thread. But i am not being able to execute node specific code like var fs =

Re: [nodejs] Node.js should delete __proto__ while we still have a chance (before we hit 1.0)

2013-09-25 Thread Ben Noordhuis
On Wed, Sep 25, 2013 at 5:12 AM, Rick Waldron waldron.r...@gmail.com wrote: On Tue, Sep 24, 2013 at 10:57 PM, Mark Hahn m...@reevuit.com wrote: It's relevant to the community to have technical discussions about the platform. This forum is about the node platform, not V8. If you don't

Re: [nodejs] How to push a task to Nodejs' V8 main thread ?

2013-09-25 Thread Ben Noordhuis
On Wed, Sep 25, 2013 at 11:30 AM, Ashish Negi thisismyidash...@gmail.com wrote: I am just trying to run a JS code in a function. for now i think that i do not need MakeCallback. I send in handle-data this js code: var fs = require('fs'); fs.readFile('C:\\abc\\hello.txt', function(err,data){

Re: [nodejs] How to push a task to Nodejs' V8 main thread ?

2013-09-24 Thread Ben Noordhuis
On Tue, Sep 24, 2013 at 1:57 PM, Ashish Negi thisismyidash...@gmail.com wrote: I want to run some javascript from the node c++ addon. How can i call / push_task nodejs to execute my javascript so that everything of nodejs is available to the javascript_that_i_want_to_execute ? Are there any

Re: [nodejs] Using more than 3GB for Node.js application

2013-09-24 Thread Ben Noordhuis
On Tue, Sep 24, 2013 at 5:47 PM, Konstantin Root konstantin.r...@gmail.com wrote: We are using 64-bit Node.js 0.10.18 and it seems that its not possible to use more than ~3GB memory inside one application. Application is run with --max_old_space_size=8192 flag on server with 8GB ram, but after

Re: [nodejs] Re: NodeJS unstable: unable to npm-install modules that need compilation?

2013-09-21 Thread Ben Noordhuis
On Sat, Sep 21, 2013 at 7:22 PM, ~flow wolfgang.l...@gmail.com wrote: so the failure to compile is not inherent to an unstable node distro, it's just a (rather pervasive) accident of the API that a given module happens to use, right? this seems to imply that many unmaintained modules will not

Re: [nodejs] Re: Node.js should delete __proto__ while we still have a chance (before we hit 1.0)

2013-09-21 Thread Ben Noordhuis
On Sat, Sep 21, 2013 at 6:09 PM, Tim Caswell t...@creationix.com wrote: If you really want a safe map where any key is allowed and doesn't conflict with builtin javascript properties, just implement your own map. Here is a very simple one that allows storing *any* value as keys. This includes

Re: [nodejs] Assertion `events == 1' failed

2013-09-20 Thread Ben Noordhuis
On Fri, Sep 20, 2013 at 7:09 AM, Richard Bateman taxil...@gmail.com wrote: We are experiencing exactly the same error message: node: ../deps/uv/src/unix/stream.c:494: uv__server_io: Assertion `events == 1' failed. (okay the line number changed). You can see our trace.log file here:

Re: [nodejs] node on IBM AIX POWER7

2013-09-20 Thread Ben Noordhuis
On Fri, Sep 20, 2013 at 11:45 PM, Filippo Di Noto fdin...@gmail.com wrote: I work in a big Power/AIX environment. I was curious about using node and tried to compile it but didn't get to far. I'm a novice in these matters. It did strike up an interesting conversation in the office about why it

Re: [nodejs] Best practice to share data between processes (cluster)

2013-09-19 Thread Ben Noordhuis
On Thu, Sep 19, 2013 at 11:23 AM, Ivan Maximenko ivanmaxime...@gmail.com wrote: Hello, I'm newest in nodejs. My application based on expressjs + cluster. And now for me is not clear how to share data between processes? Code example : function Acl(storage) { //storage - mongodb return {

Re: [nodejs] significant RSS increase, and performance decrease, moving from node 0.8.x to 0.10.x

2013-09-19 Thread Ben Noordhuis
On Thu, Sep 19, 2013 at 8:32 PM, spollack s...@pollackphoto.com wrote: On Thursday, September 19, 2013 10:14:22 AM UTC-7, Ben Noordhuis wrote: Yes, that's correct. 1 GB is a bit on the low side these days, especially when running on a virtualized machine where the physical memory may

Re: [nodejs] significant RSS increase, and performance decrease, moving from node 0.8.x to 0.10.x

2013-09-19 Thread Ben Noordhuis
On Thu, Sep 19, 2013 at 6:07 PM, spollack s...@pollackphoto.com wrote: Thanks Ben. I've been experimenting with --max_old_space_size, but so far this hasn't resolved my issue. In the test i ran last night in the approximate sweet spot between too little memory (crash) and too much memory

Re: [nodejs] significant RSS increase, and performance decrease, moving from node 0.8.x to 0.10.x

2013-09-18 Thread Ben Noordhuis
On Wed, Sep 18, 2013 at 3:02 AM, spollack s...@pollackphoto.com wrote: I'm trying to track down a significant RSS increase, and performance decrease, moving from node 0.8.x to 0.10.x. WIth the backend worker portion of our application doing its standard workload, under node 0.8.23, our RSS

Re: [nodejs] child_process send socket but parent thread cpu too much high

2013-09-17 Thread Ben Noordhuis
On Tue, Sep 17, 2013 at 9:28 AM, chenxu zhao zztc...@gmail.com wrote: I use child_process fork 4 thread. in the parent thread . I send the socket to child. when the client write data to the server or close the socket,not only the child process cpu run,but also the parent process use the cpu.

Re: [nodejs] Worry about Cluster Stability: (1 - Experimental)

2013-09-16 Thread Ben Noordhuis
On Mon, Sep 16, 2013 at 9:00 AM, Zhe Feng fengzhe1...@gmail.com wrote: Hi guys, I'm using node for a while and now plan to put some nodejs app into production env. There is one thing I'm worry about always. As we know nodejs is not support multi core cpu unless you use Cluster. And if you go

Re: [nodejs] Recursive process.nextTick crash

2013-09-09 Thread Ben Noordhuis
On Mon, Sep 9, 2013 at 9:44 AM, Jules ju...@jules.com.au wrote: Since upgrading from 0.8 to 0.10, we're occasionally see these crashes in production: (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive

Re: [nodejs] Query length of event loop queue

2013-09-08 Thread Ben Noordhuis
On Sun, Sep 8, 2013 at 5:07 PM, TJ Marbois tmarb...@gmail.com wrote: Is it possible for you to explain a little more detail about these two undocumented functions? is there a reason why they remain undocumented? process._getActiveHandles() process._getActiveRequests() cheers Tj They're

Re: [nodejs] Query length of event loop queue

2013-09-08 Thread Ben Noordhuis
On Sun, Sep 8, 2013 at 8:43 PM, TJ Marbois tmarb...@gmail.com wrote: Ben ok thanks.. yea I was tinkering with them and saw some strange returns - and wasn't sure how to interpret them... ie: some functions being tracked and others ignored - I figured it must be some internal info that is not

Re: [nodejs] PowerLinux (PowerPC aka PPC) early (unofficial) version of Node.js

2013-09-04 Thread Ben Noordhuis
On Tue, Sep 3, 2013 at 10:52 PM, Matt hel...@gmail.com wrote: On Tue, Sep 3, 2013 at 3:53 PM, Andrew Low roo@gmail.com wrote: If you're G4 Powerbook is running Linux - I think you _are_ the target market :) If your question was about getting a version running under OSX (on PowerPC)

Re: [nodejs] Possible memory leak on https calls

2013-09-04 Thread Ben Noordhuis
On Tue, Sep 3, 2013 at 2:19 PM, jeevan kk jeeva...@gmail.com wrote: I have checked the heapdump after making some https calls. I have noticed some Buffers are not been released. This is doesn't happen when I use http. That's not unexpected. The tls module (the https module is built on top of

Re: [nodejs] Re: When is it safe to catch errors?

2013-08-31 Thread Ben Noordhuis
On Sat, Aug 31, 2013 at 2:35 AM, Mark Hahn m...@reevuit.com wrote: Core is allowed to break all the rules because the people working on it know (or are supposed to know) when it's safe and when it's not. And the rest of us are just idiots, Well, if that is what you want to read into it...

Re: [nodejs] Can nodejs create a crypto key + certificate for me?

2013-08-31 Thread Ben Noordhuis
On Sat, Aug 31, 2013 at 11:02 AM, i...@bodokaiser.io wrote: Hello, you all know OpenSSL key pairs used for SSL connections. I want to create one in node.js natively unfortunately I only found spawning a child process which calls openssl from the command line can do this. Is this correct

Re: [nodejs] Can nodejs create a crypto key + certificate for me?

2013-08-31 Thread Ben Noordhuis
On Sat, Aug 31, 2013 at 1:16 PM, i...@bodokaiser.io wrote: Actually what would be the benefit of using Diffie-Hellman for key pair generation over randomBytes? Apples and oranges. The DH functions are for setting up an encrypted communication channel between two or more peers.

Re: [nodejs] Re: Troubleshooting SSL connection failures

2013-08-30 Thread Ben Noordhuis
On Fri, Aug 30, 2013 at 11:06 AM, Aaron Seet icel...@gmail.com wrote: Unfortunately, that only appeared to have delayed the problem; after prolonged usage, the error has occurred again. Error: 1240:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown

Re: [nodejs] Re: When is it safe to catch errors?

2013-08-30 Thread Ben Noordhuis
On Fri, Aug 30, 2013 at 10:49 PM, Peter Skirko pski...@gmail.com wrote: Thanks, appreciate the link. Seems like the key part is at the bottom: Node is for running JavaScript, so JavaScript's limitations are Node program limitations. *JavaScript* throws are fundamentally unsafe if they jump

Re: [nodejs] Current status of node::MakeCallback

2013-08-29 Thread Ben Noordhuis
On Thu, Aug 29, 2013 at 12:00 AM, John C raz...@gmail.com wrote: Last year there was some discussion around MakeCallback in this thread: Speed impact of node::MakeCallback https://groups.google.com/forum/#!msg/nodejs-dev/6kRRYW_5MU0/XQjQn8GHdQQJ. It was indicated that MakeCallback would be

Re: [nodejs] Can i Use my V8 ?

2013-08-29 Thread Ben Noordhuis
On Thu, Aug 29, 2013 at 7:36 AM, Ashish Negi thisismyidash...@gmail.com wrote: Is the v8 or any other dependency that nodejs uses have got any specific path by nodejs ? Can i use my own copies of V8 and other dependencies ? Yes, you can link against dynamic versions of the dependencies, see

Re: [nodejs] node-gyp problem:

2013-08-29 Thread Ben Noordhuis
On Thu, Aug 29, 2013 at 9:55 AM, Ashish Negi thisismyidash...@gmail.com wrote: I am new to node.gyp : In node.gyp file what does # in 'dependencies': [ 'node_js2c#host', ], and also is '(SHARED_INTERMEDIATE_DIR)' is part of node-gyp and not that of google-gyp because i

Re: [nodejs] What is node.lib , node_dtrace_* for ?

2013-08-29 Thread Ben Noordhuis
On Thu, Aug 29, 2013 at 8:32 AM, Ashish Negi thisismyidash...@gmail.com wrote: I build node on windows and it produced .lib file with .node. Does .lib file can be used for extending node ? If one wants to link node with CEF, would he use .lib file ? Possibly. It's normally used for writing

Re: [nodejs] Cluster: signal handler for worker process works?

2013-08-26 Thread Ben Noordhuis
On Mon, Aug 26, 2013 at 9:17 AM, Jeong Heon blmar...@gmail.com wrote: Hi, to make my service to do graceful shutdown, I'm trying to write signal handler for worker processes(to flush buffered internal logs to external log server, etc.) but they just dies without signal handling. I don't know

[nodejs] Re: DTLS Support in node

2013-08-26 Thread Ben Noordhuis
On Fri, Aug 23, 2013 at 11:05 PM, migounette yann.step...@gmail.com wrote: All, I am planning to implement DTLS, I would like to have this in nodejs core and not as a npm module. It may be like http://nodejs.org/api/all.html#all_tls_ssl, but instead of TCP it will be over UDP This

Re: [nodejs] Debugging node over a forwarded port

2013-08-21 Thread Ben Noordhuis
On Wed, Aug 21, 2013 at 2:12 AM, Neil Kandalgaonkar ne...@neilk.net wrote: On Monday, August 19, 2013 9:50:50 PM UTC-7, Ben Noordhuis wrote: On Tue, Aug 20, 2013 at 3:36 AM, Neil Kandalgaonkar ne...@neilk.net wrote: I'm running node inside a Linux VM, on my Mac OS laptop. I'd like to debug

Re: [nodejs] Is it possible to break v8's memory limitation?

2013-08-21 Thread Ben Noordhuis
On Wed, Aug 21, 2013 at 5:04 AM, Edmond Meinfelder edmond.meinfel...@gmail.com wrote: In 64-bit v8, I know of no restrictions on heap size. It's about 1.9 GB. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You

Re: [nodejs] `crypto.Hash` digest endianness

2013-08-19 Thread Ben Noordhuis
On Mon, Aug 19, 2013 at 6:54 AM, Alan Gutierrez a...@prettyrobots.com wrote: I'm implementing a collection of non-cryptographic hash algorithms for use in tables and data verity in pure-JavaScript with native counterparts. https://github.com/bigeasy/hash The hashes I've implemented so

Re: [nodejs] Debugging node over a forwarded port

2013-08-19 Thread Ben Noordhuis
On Tue, Aug 20, 2013 at 3:36 AM, Neil Kandalgaonkar ne...@neilk.net wrote: I'm running node inside a Linux VM, on my Mac OS laptop. I'd like to debug node. For some reason I can't get the debugger protocol to be forwarded over a port. Is there something special about how the protocol works,

Re: [nodejs] Re: Callbacks as our Generations' Go To Statement - Miguel de Icaza

2013-08-19 Thread Ben Noordhuis
On Mon, Aug 19, 2013 at 11:21 PM, Marcel Laverdet mar...@laverdet.com wrote: Even the current generator/yield implementations are essentially accomplished via CPS transforms. This is untrue. Fibers uses a new stack and a long jump. Haven't looked at the implementation for generators in v8 but

Re: [nodejs] C++ contributions

2013-08-18 Thread Ben Noordhuis
On Sun, Aug 18, 2013 at 5:52 AM, D. Charbonneau novo.charbonnea...@gmail.com wrote: I'm wanting to contribute to a project using what I know from C++. The problem is that I just started C++, having come from various dynamic languages, so I don't think my skill level is good enough to contribute

Re: [nodejs] Buffer.poolSize

2013-08-18 Thread Ben Noordhuis
On Sat, Aug 17, 2013 at 9:27 PM, Laurent Fortin laurent.for...@gmail.com wrote: Hi, Let's say I want to boost the SlowBuffer size like this: // set to 1 Mb Buffer.poolSize = 1024 * 1024; Is it a good practice for boosting performance, if there is lots of memory available? The answer to

Re: [nodejs] Help writing async Readable stream

2013-08-16 Thread Ben Noordhuis
On Fri, Aug 16, 2013 at 11:54 AM, Brian Lalor bla...@bravo5.org wrote: Thank you, Jake and Pedro. You confirmed my approach was valid; my mistake is that I included an encoding in the options to the Readable constructor, which apparently overrides objectMode. And, no, I don't know why I had

Re: [nodejs] Help writing async Readable stream

2013-08-16 Thread Ben Noordhuis
On Fri, Aug 16, 2013 at 12:06 PM, Brian Lalor bla...@bravo5.org wrote: On Aug 16, 2013, at 6:05 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: To your point about pause/resume, Jake: there's no flow control with UDP. What're the consequences of not honoring a return of false from Readable#push

Re: [nodejs] Load on node-server

2013-08-16 Thread Ben Noordhuis
On Fri, Aug 16, 2013 at 7:00 PM, Jens Himmelreich jens.himmelre...@gmail.com wrote: Am Dienstag, 13. August 2013 22:35:42 UTC+2 schrieb Ben Noordhuis: On Tue, Aug 13, 2013 at 5:04 PM, Jens Himmelreich jens.him...@gmail.com wrote: Am Montag, 12. August 2013 19:03:27 UTC+2 schrieb Ben

Re: [nodejs] Dependencies for native module installs via npm/node-gyp (especially when offline)

2013-08-13 Thread Ben Noordhuis
On Tue, Aug 13, 2013 at 5:45 AM, andy e virtuala...@gmail.com wrote: When trying to install leveldown/levelup on Windows using node 0.10.9 npm, npm/node-gyp grabs dependencies from http://nodejs.org/dist/insert node version here/ i.e. http://nodejs.org/dist/v0.10.9/node-v0.10.9.tar.gz This

Re: [nodejs] What was the build system for the node.js binary packages?

2013-08-13 Thread Ben Noordhuis
On Tue, Aug 13, 2013 at 5:16 AM, Matthias Dittgen ditt...@gmail.com wrote: Hello, compiling node directly on a VPS with only few resources for every new version was very time consuming. Thus I now install the binary package using my own fork of a really nice install script

Re: [nodejs] setTimeout and setInterval issue when wall clock changes

2013-08-13 Thread Ben Noordhuis
On Tue, Aug 13, 2013 at 4:30 PM, Criton cri...@alfa.it wrote: Hi all. I am running nodejs 0.10.15 on an ubuntu 12.04 machine. I wrote a simple js module, for clock behaviour testing: setInterval(function () { console.log(Now: + Date.now()); }, 2000); On console I see every 2 seconds

Re: [nodejs] BREACH and node.js ( 2013 Black Hat conference )

2013-08-13 Thread Ben Noordhuis
On Tue, Aug 13, 2013 at 2:16 PM, Chris Wakare chris.wak...@gmail.com wrote: Hello, During the 2013 Black Hat conference , researchers announced the BREACH attack. As BREACH takes advantage of vulnerabilities when serving compressed data over SSL/TLS, its been advised to disable compression of

Re: [nodejs] Load on node-server

2013-08-13 Thread Ben Noordhuis
On Tue, Aug 13, 2013 at 5:04 PM, Jens Himmelreich jens.himmelre...@gmail.com wrote: Am Montag, 12. August 2013 19:03:27 UTC+2 schrieb Ben Noordhuis: On Mon, Aug 12, 2013 at 6:05 PM, Jens Himmelreich jens.him...@gmail.com wrote: Hi, I have a node-server between an nginx-webserver (static

Re: [nodejs] Load on node-server

2013-08-12 Thread Ben Noordhuis
On Mon, Aug 12, 2013 at 6:05 PM, Jens Himmelreich jens.himmelre...@gmail.com wrote: Hi, I have a node-server between an nginx-webserver (static content) and an varnish. Behind the varnish are two application-server for search and cart-hosting. The node-machine has 4 cores. Every machine has

Re: [nodejs] ArrayBuffer vs. Buffer

2013-08-12 Thread Ben Noordhuis
On Mon, Aug 12, 2013 at 9:04 PM, Felipe Gasper fel...@felipegasper.com wrote: It seems like ArrayBuffer and Buffer do a lot of the same work. What is the relationship between these two constructs? Node seems to favor Buffer, but why? History. Buffers predate ArrayBuffers (in V8, maybe not in

Re: [nodejs] zlib fails to extract concatenated files

2013-08-10 Thread Ben Noordhuis
On Sat, Aug 10, 2013 at 8:45 AM, ribao wei riba...@gmail.com wrote: Hi, I just encounter this and not sure whether it is a bug in zlib module. echo 1 1.txt echo 2 2.txt gzip 1.txt gzip 2.txt cat 1.txt.gz 2.txt.gz 3.txt.gz Now, gunzip 3.txt.gz prints: 1 2 However,

Re: [nodejs] zlib fails to extract concatenated files

2013-08-10 Thread Ben Noordhuis
On Sat, Aug 10, 2013 at 9:40 PM, Martin Cooper mfncoo...@gmail.com wrote: The zlib module is not working with gzip files, though, it's working with a data buffer that could have come from anywhere. In that situation, in my opinion, zlib shouldn't be (a) assuming it should keep going after one

Re: [nodejs] how do i get the serial numbers of X.509 certs

2013-08-09 Thread Ben Noordhuis
On Fri, Aug 9, 2013 at 4:33 AM, Hseu-Ming Chen hseum...@gmail.com wrote: For the serial number that i was referring to: if you look at the content of one of the client-side certs i issued: % openssl x509 -in foo.cert -text -noout

Re: [nodejs] Profiler shows most time is spent in External VM state at unknown addresses

2013-08-08 Thread Ben Noordhuis
On Thu, Aug 8, 2013 at 12:30 PM, Zoid andy.melni...@gmail.com wrote: I ran my app with --prof key to create v8.log. Then I installed node-tick and ran it to analyze the log. It turned out that most of the time is spent in EXTERNAL VM state. Node is 0.8.22 I interpret the node-tick log as

Re: [nodejs] how do i get the serial numbers of X.509 certs

2013-08-07 Thread Ben Noordhuis
On Wed, Aug 7, 2013 at 6:27 AM, ming hseum...@gmail.com wrote: Hi, i have been running a [private|local] CA which also functions as a reverse proxy. i issue X.509 client-side certs with this CA for programming API access authentication. Now i am contemplating the implementation of some

Re: [nodejs] Logic OR maybe should be bitwise or

2013-08-07 Thread Ben Noordhuis
On Wed, Aug 7, 2013 at 5:24 AM, codepilot Account codepi...@gmail.com wrote: namepropertyquery Returns a non-empty handle if the interceptor intercepts the request. The result is an integer encoding property attributes (like v8::None, v8::DontEnum, etc.) Line 2095 of node.cc in 0.10.15

Re: [nodejs] RSS memory usage (with graphs!)

2013-08-06 Thread Ben Noordhuis
On Tue, Aug 6, 2013 at 2:17 AM, dar...@darrenwhitlen.com wrote: Hi, Memory graphs (memory shown in MB): http://i.imgur.com/gMwYSWS.png http://i.imgur.com/gLF5NNr.png Node version: 0.10.15 (same issue applies on 0.8.*, 0.10.15 and under) I've been trying to tackle a serious memory

Re: [nodejs] [private|local] CA reverse proxy

2013-08-05 Thread Ben Noordhuis
On Mon, Aug 5, 2013 at 5:10 AM, ming hseum...@gmail.com wrote: Hi, Currently i'm running a private (or local) CA. i use the private CA to sign client-side certs. In addition, the cert of the server that i run my node.js program on is also signed by my private CA. To wit, i've the

Re: [nodejs] [private|local] CA reverse proxy

2013-08-05 Thread Ben Noordhuis
On Mon, Aug 5, 2013 at 1:26 PM, ming hseum...@gmail.com wrote: Hi Ben, Thank you for the reply.i've a few questions about your reply: When you pass a CA certificate/chain with the 'ca' option, node.js won't load any root certificates, just the certificate/chain that you specified. Why

Re: [nodejs] Is there any alternative option of __dirname to accessing current directory

2013-08-01 Thread Ben Noordhuis
On Thu, Aug 1, 2013 at 8:52 AM, gajendra rawat rawat1989@gmail.com wrote: Hello, I am working in a script in node.js, in which I have to access current directory. For this i am using __dirname. But there is a space occurred in my Directory path Users/SS/Desktop/new

<    1   2   3   4   5   6   7   8   9   10   >