Re: [nodejs] Re: possible memory leak in node cluster?

2012-12-05 Thread Yi Tan
Hi Eyko, The memory leak issue had been solved, it was cause by an bug in our code, which kept generating unused buffers. It's not due to the node cluster. From our production usage, node cluster is solid. regards, ty Regards, ty 2012/12/5 Eyko Sioux eykosi...@gmail.com We're having a

[nodejs] HELP! Nodejs server side DES/AES decrypt with ActionScript client side encrypt

2012-11-28 Thread Yi Tan
Hi, Has anyone successfuly implement AES or DES encrypted buffer data communication betwen nodejs server and ActionScript client? Please.Please... shed some light on me. We got stuck in NodeJS - ActionScript client, AES/DES encryped data communication. In our project, we are using

[nodejs] Re: HELP! Nodejs server side DES/AES decrypt with ActionScript client side encrypt

2012-11-28 Thread Yi Tan
sorry question 2 DecipherInitIv error is due to an mistake. the decipher was created successfully by: cipher = crypto.createDecipheriv( 'des-cbc', new Buffer('24aea6fe8aedbcea', 'hex'), new Buffer('f34c3e65cfc7b5c9', 'hex')) Regards, ty 2012/11/29 Yi Tan yi2

Re: [nodejs] Which database to use for a realtime chat game?

2012-10-08 Thread Yi Tan
+1 to Angel Java Lopez's question. In high traffic real-time games, data persistence no need to be in real-time. The important thing I think is how to efficiently and accurately delivery message to clients in low lag and low bandwidth consumption Regards, ty 2012/10/8 Angel Java Lopez

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Yi Tan
IMHO, TypeScript makes Javascript feel like ActionScript/Java/C#... loss JavaScript's agility, and the things smell awful enterprise My vote goes to coffeescript Regards, ty 2012/10/2 Shripad K assortmentofso...@gmail.com Okay I just tried it in the TypeScript playground. Doesn't seem like

Re: [nodejs] buf.readUInt16BE and buf.readUInt16LE difference

2012-09-23 Thread Yi Tan
FYI: http://en.wikipedia.org/wiki/Endianness Regards, ty 2012/9/24 Ben Noordhuis i...@bnoordhuis.nl On Mon, Sep 24, 2012 at 12:48 AM, nodenewbie mig.pi...@gmail.com wrote: Was looking at Buffer class in nodejs documentation - Does anyone know the difference between buf.readUInt16BE and

Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-09-22 Thread Yi Tan
MacOS, VIM with: vim coffee script: https://github.com/kchmck/vim-coffee-script coffee tags: https://github.com/lukaszkorecki/CoffeeTags very happy Regards, ty 2012/9/22 Dennis Kehrig mailgoo...@denniskehrig.de Windows XP with SciTE http://www.scintilla.org/SciTE.html extended by

Re: [nodejs] Re: best practice for real-time socket-based cross clustered-process data communication and computation

2012-09-12 Thread Yi Tan
. Obviously, each node will need to keep track of every other node it needs to communicate with. something like http://npm.im/seaport might be good for that. Also, what kind of messages are they sending? On Tue, Sep 11, 2012 at 10:21 AM, Yi Tan yi2...@gmail.com wrote: Thanks Johnny, dnode is very

Re: [nodejs] Re: best practice for real-time socket-based cross clustered-process data communication and computation

2012-09-11 Thread Yi Tan
Thanks Johnny, dnode is very inspiring. cluster2 may help us a lot in production! Regards, ty 2012/9/11 Johnny Honestly mostmodern...@gmail.com I heard about this cluster manager today directly from the guys at ebay working on ql.io https://github.com/ql-io/cluster2 You can stream

[nodejs] best practice for real-time socket-based cross clustered-process data communication and computation

2012-09-10 Thread Yi Tan
Hi node mates: I'm looking for your advice about how to design and implement an mechanism for real-time socket-based cross clustered-process data communication and computation. [The server layout] clientA --tcp socket-- node service A -- DataModelA -- unique radis data store clientB --tcp

Re: [nodejs] best practice for real-time socket-based cross clustered-process data communication and computation

2012-09-10 Thread Yi Tan
, Sep 10, 2012 at 3:44 PM, Yi Tan yi2...@gmail.com wrote: Hi node mates: I'm looking for your advice about how to design and implement an mechanism for real-time socket-based cross clustered-process data communication and computation. [The server layout] clientA --tcp socket-- node service

Re: [nodejs] best practice for real-time socket-based cross clustered-process data communication and computation

2012-09-10 Thread Yi Tan
A and service B . Instead use redis as message pipe? -- rubyonrailsx Sent with Sparrow http://www.sparrowmailapp.com/?sig On Monday, September 10, 2012 at 4:44 PM, Yi Tan wrote: Hi node mates: I'm looking for your advice about how to design and implement an mechanism for real-time socket-based

Re: [nodejs] Create two or more socket UDP on different ports

2012-09-09 Thread Yi Tan
Hi Normando, I have a very similar implementation according to your request. FYI, I've shared it on github: https://github.com/SGF-Games/node-udpcomm Regards, ty 2012/9/10 Ben Noordhuis i...@bnoordhuis.nl On Sun, Sep 9, 2012 at 7:54 PM, Normando Hall normandoh...@gmail.com wrote: Hi

Re: [nodejs] node.js response time increase with concurrent connections

2012-08-22 Thread Yi Tan
use cluster: http://nodejs.org/api/cluster.html Regards, ty 2012/8/23 jason.桂林 guil...@gmail.com test by node.js http helloworld 10 concurrent connections response: 0ms(min) 19ms(max) 1ms(avg) 30 concurrent connections response: 2ms(min) 20ms(max) 4ms(avg) 100 concurrent connections

Re: [nodejs] [Ann] Connect-bruteforce

2012-08-14 Thread Yi Tan
very helpful! thank you Regards, ty 2012/8/13 Pedro Narciso García Revington p.reving...@gmail.com Hi everyone, This is a module that prevents brute force login by delaying responses. It is also usefull when you want to require captcha validation after some unsuccesful tries. See README

[nodejs] possible memory leak in node cluster?

2012-08-12 Thread Yi Tan
Hi We have recently experienced a strange issue with node cluster. It looks like the built-in node cluster might have serious memory leak when process socket service. Following is the details. We have a simple socket service built on node. It does some simple buffer handling and distribution

Re: [nodejs] what's the best way to has a position property for Buffer object

2012-07-27 Thread Yi Tan
with message lengths. If you're using a pre-existing protocol (like mysql) then the framing is probably included in the wire protocol. On Thu, Jul 26, 2012 at 11:04 PM, Yi Tan yi2...@gmail.com wrote: Hi all, I'm working on a node project to process binary stream send/received via socket

[nodejs] what's the best way to has a position property for Buffer object

2012-07-26 Thread Yi Tan
Hi all, I'm working on a node project to process binary stream send/received via socket connection. I'm new to Node, I found in the Buffer class, there is no property to indicate current stream read position. And this cause a lot of difficult when parsing complex binary stream. Could you give

[nodejs] Does nodejs support IP Multicast at socket level?

2012-07-17 Thread Yi Tan
Hi Does nodejs support IP Multicast? If yes, what is the API exposed at socket level? We are using nodejs for real-time socket application, and has large number of clients connect to the node service. We are looking for ways to improve its performance. Many thanks, ty -- Job Board:

Re: [nodejs] Re: Node.js memory, GC and performance

2012-07-13 Thread Yi Tan
Hi Joran, We are facing a similar performance problem as your million-entry-object. May I ask you to explain a bit detail about the implementation of ”Buffer backed open addressed hash table “ Many thanks, ty 2012/7/13 Joran Greef jo...@ronomon.com To get a very rough idea of how much time

Re: [nodejs] Re: Node.js memory, GC and performance

2012-07-13 Thread Yi Tan
Hi Joran, Thank you so much for the information! Regards, ty 2012/7/13 Joran Greef jo...@ronomon.com ty, it's just an implementation of the dense hash map described by http://sparsehash.googlecode.com/svn/trunk/doc/implementation.html It stores the keys and values side by side, in a

[nodejs] any easy way to support WeakMap in node

2012-07-11 Thread Yi Tan
Hi all, We need to use WeakMap ( https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/WeakMap) data structure in our node application. Currently the only way we've found to enable WeakMap is to replace the v8 in node by a custom build v8 with --enable-weakmap switch on. But I'm

Re: [nodejs] Re: MMO game node balancing multi servers

2012-07-05 Thread Yi Tan
for real time mmo games, I'd suggest you to look at other server side solution then node. the problem is not in node, but in javascript language. It lacks of native map-based data structure, and will cause you much trouble in code implantation and of cause slows down performance. Regards, ty

Re: [nodejs] how to run servers in coffeescript

2012-06-10 Thread Yi Tan
compile coffee first into js #!/bin/bash mkdir -p lib/ coffee -o lib/ -cw src/ Regards, ty 2012/6/10 Angelo Chen angelochen...@gmail.com: Hi, i use forever to run a js, cpu usage is very low, less than 2%, same program in coffeescript and run it this way: forever start test.coffee

Re: [nodejs] Chat: Sockets + Http

2012-04-12 Thread Yi Tan
to make your flash client work, you need to define a server side cross domain policy file. flash require the policy before you client can commuicate with server. google actionscrip socket policy for details 在 2012-4-12 上午8:14,sparky steven@gmail.com写道: I'm working to create a simple chat

Re: [nodejs] Re: How to avoid callback hell?

2012-04-10 Thread Yi Tan
you really should spend a few hours learning coffee script if the js callback syntax make you uncomfortable 在 2012-4-10 下午2:59,Matthew Hazlett hazl...@gmail.com写道: Thanks everyone for your input on this matter. I will say that, I opted not to use any sort of Async library, but instead opted to

[nodejs] RegXp.test() behaves inconsistently

2012-03-13 Thread Yi Tan
var reg = /[^\$]*\$([^\|]*)\|?(.*)/g var a = '$3ec05baeef7' reg.test(a) //output: true reg.test(a) //output: false reg.test(a) //output: true reg.test(a) //output: false reg.test(a) //output: true reg.test(a) //output: false reg.test(a) //output: true reg.test(a) //output: false reg.test(a)

Re: [nodejs] RegXp.test() behaves inconsistently

2012-03-13 Thread Yi Tan
asd.test($a$1$2$3$d) false Hope that helps On Tue, Mar 13, 2012 at 9:45 AM, Yi Tan yi2...@gmail.com wrote: var reg = /[^\$]*\$([^\|]*)\|?(.*)/g var a = '$3ec05baeef7' reg.test(a) //output: true reg.test(a) //output: false reg.test(a) //output: true reg.test(a) //output: false reg.test

[nodejs] node v0.6.6 crashes on http.get calls. Error: connect Unknown system errno 10060

2012-02-05 Thread Yi Tan
I met a following strange issue on nodejs v0.6.6 My application use a lot of http.get() calls. When node handles multiple requests for a while (after process 10k - 50k requests), it crashes on node.js:201. I have put try...catch... on http.get, but no luck, the error can't be captured and node