Dear Chad,

The code is a part of our company's software and I'm not authorized to 
share it directly. I'm creating a sample demo application to check the same 
thing and I'll share it as soon as its ready!

On Saturday, December 29, 2012 2:15:01 AM UTC+8, Chad Engler wrote:
>
> Code pl0x
>
>  
>
> -Chad
>
>  
>
> *From:* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *On Behalf Of *Akshaya Sharma
> *Sent:* Friday, December 28, 2012 11:08 AM
> *To:* [email protected] <javascript:>
> *Subject:* [nodejs] socket.io and mongodb
>
>  
>
> Hi,
>
>  
>
> I have created an application in Silverlight which allows the users to 
> retrieve data from mongodb according to the user's inputs. The user can 
> keep on refining his inputs without actually waiting for the callback and 
> for each modification the nodejs server is contacted again. The problem I'm 
> facing is the values of my variables are lost during the processing. Here's 
> an ex:
>
>    1. The server receives a request which sends 5 calls (say Req1) using 
>    async.forEach to mongodb 
>    2. For all the results received (say Res1), it does some processing or 
>    calls mongodb again using async.forEach (say Req2)
>    3. Now during this processing Res1 looses its value. 
>
> I don't reuse this variable anywhere except that when the response to Req2 
> is received (say Res2), the result is used to modify Req2. I tried putting 
> logs but cant really find a reason for this behavior. What should I check?
>
> -- 
> 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
> Groups "nodejs" group.
> To post to this group, send email to [email protected] <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to