[nodejs] Cannot resume "make" when building node using GYP on Mac

2013-08-10 Thread Felix Halim
o do "make distclean" and "make" which starts from the beginning again. This problem also happens when "make" is completed successfully, then I edited one of the files and when I run "make", it gives similar error as above instead of recompiling what I chang

[nodejs] uv_write() for dynamic response

2012-07-22 Thread Felix Halim
whatever to close the connection. This would make those two things above a lot easier for the user, isn't it? (of course this means libuv must handle the allocation) Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Po

Re: [nodejs] Re: uv_write() for dynamic response

2012-07-23 Thread Felix Halim
yway, my concern is the memory usage. If we have a big response, it is better to use (1) to save memory as you cannot do that using (2). Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

Re: [nodejs] Re: uv_write() for dynamic response

2012-07-23 Thread Felix Halim
uv_printf("a very long string ... ") will return false that suggest the user to pause writing and resume on a callback somewhere. IMHO, the availability of string buffer utility in libuv will improve it's usability by A LOT. Felix Halim -- Job Board: http://jobs.nodejs.org/

[nodejs] [libuv] multiple calls order of on_alloc and on_read

2012-07-23 Thread Felix Halim
y use one buffer for the on_alloc(). If it interleaves, then it can step toe one another. Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google G

[nodejs] Re: [libuv] multiple calls order of on_alloc and on_read

2012-07-24 Thread Felix Halim
_t buf) { // use the "buf", but no need to free(buf.base) } Felix Halim On Tue, Jul 24, 2012 at 10:35 AM, Felix Halim wrote: > In the uv_read_start() documentation, it says that the on_alloc and > on_read can be called many times. > However, it doesn't specify the order. > I

[nodejs] [libuv] crashed on POST request, libuv bugs?

2012-07-26 Thread Felix Halim
e web form I used is a simple html: http://127.0.0.1:8000/blabla";> Run it on a browser and click the button. Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You receive

Re: [nodejs] [libuv] crashed on POST request, libuv bugs?

2012-07-26 Thread Felix Halim
resources. One other concern is that if the Content-Length of the POST request is bigger than the actual length of the body, then the server will keep on waiting the last bytes. Is there a timeout mechanism in libuv to force close the connection during parsing? Felix Halim On Thu, Jul 26, 2012 at

Re: [nodejs] [libuv] crashed on POST request, libuv bugs?

2012-07-26 Thread Felix Halim
d twice). However, it will save our time in deciphering the guts of libuv code if there is a comment (in the code) right next after the assert(), explaining what kind of error each assert() is trying to catch. That would be very helpful for programmers. Thanks, Felix Halim On Thu, Jul 26, 2012 a

[nodejs] Node JS chat room

2012-07-26 Thread Felix Halim
I was expecting to see this chat room to keep running indefinitely: http://chat.nodejs.org/ What happened to it? Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are

[nodejs] [libuv] uv_write and uv_close

2012-07-27 Thread Felix Halim
&write_req, (uv_stream_t*)&handle, &resbuf, 1, 0); uv_close((uv_handle_t*)req->handle, on_close); Is it guaranteed that the close will happen after all writes are finished? I couldn't find any info regarding this in the uv.h Felix Halim -- Job Board: http://jobs.nodejs.org/ Po

Re: [nodejs] Node JS chat room

2012-07-27 Thread Felix Halim
On Fri, Jul 27, 2012 at 1:54 PM, Mihamina Rakotomandimby wrote: > On 07/27/2012 08:47 AM, Felix Halim wrote: >> >> I was expecting to see this chat room to keep running indefinitely: >> http://chat.nodejs.org/ > > > Despite Node is a wonderfull tool, I think we

Re: [nodejs] [libuv] uv_write and uv_close

2012-07-27 Thread Felix Halim
On Fri, Jul 27, 2012 at 8:00 PM, Ben Noordhuis wrote: > On Fri, Jul 27, 2012 at 9:38 AM, Felix Halim wrote: >> Is it mandatory to call uv_close in the callback of uv_write? >> >> Or we can just write it like this (3 uv_writes, followed by one uv_close): >> >>

Re: [nodejs] [libuv] uv_write and uv_close

2012-07-27 Thread Felix Halim
On Fri, Jul 27, 2012 at 8:00 PM, Ben Noordhuis wrote: > On Fri, Jul 27, 2012 at 9:38 AM, Felix Halim wrote: >> Is it mandatory to call uv_close in the callback of uv_write? >> >> Or we can just write it like this (3 uv_writes, followed by one uv_close): >> >>

[nodejs] [libuv] how to exit from uv_loop?

2012-07-27 Thread Felix Halim
When we call: uv_run(uv_loop); The lines after that will never get called, unless we exit from uv_loop. What is the function to call for that? Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You

[nodejs] [libuv] uv_timer_start(), the repeat parameter

2012-07-30 Thread Felix Halim
you guys open up the Wiki section on the uv github so we can get >> some tuts rolling? > > Done. So if I have libuv questions, should I post it in this mailing list? or the wiki? or the Issues section? Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://git

[nodejs] [libuv] the number of thread pool for uv_queue_work, sleep() and uv_timer

2012-07-31 Thread Felix Halim
thread (and you are left with even fewer available thread pool), right? How does uv_timer implemented? (Does it uses a thread and block like sleep()?) @Nikhil: why do you use sleep() in your fibonacci example? https://github.com/nikhilm/uvbook/blob/master/code/queue-work/main.c Felix Halim

[nodejs] Re: [libuv] silent crash on large response + closing connection from client

2012-08-06 Thread Felix Halim
On Tue, Aug 7, 2012 at 1:28 AM, Felix Halim wrote: > I am using (the updated) Ryan Dahl's simple webserver: > > https://gist.github.com/1249783 > > I modify the webserver.c so that instead of responding with a simple > "hello world", it send a large response

[nodejs] Re: [libuv] silent crash on large response + closing connection from client

2012-08-06 Thread Felix Halim
SIGPIPE but node won't crash anymore" So, how does node.js handle that SIGPIPE? Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the

Re: [nodejs] Re: [libuv] silent crash on large response + closing connection from client

2012-08-07 Thread Felix Halim
On Tue, Aug 7, 2012 at 8:42 PM, Ben Noordhuis wrote: > On Tue, Aug 7, 2012 at 6:05 AM, Felix Halim wrote: >> On Tue, Aug 7, 2012 at 3:47 AM, Ben Noordhuis wrote: >>> No, libuv (and node.js) handles that fine. Chances are high that the >>> bug is in your appli

[nodejs] Non-blocking Addons Example?

2012-03-29 Thread Felix Halim
tion above doesn't have an example on how to use addons + libuv to do a non-blocking addons. Can anyone give a simple example of non-blocking addons? Thanks, Felix Halim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting

Re: [nodejs] Re: Non-blocking Addons Example?

2016-04-17 Thread Felix Halim
nce I get to define the API for the communications. Here is my generic http-server in C++11 that wraps libuv (it supports async requests see the test_server.cc <https://github.com/felix-halim/http-server/blob/master/test_server.cc>): https://github.com/felix-halim/http-server It has been