VirtualBox

Changes between Version 1 and Version 2 of Ticket #11649, comment 28


Ignore:
Timestamp:
Jan 9, 2014 11:36:32 AM (10 years ago)
Author:
machete143

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11649, comment 28

    v1 v2  
    55However, that was solvable by replacing {{{ #!/bin/sh }}} with {{{ #!/bin/bash }}}
    66
    7 But unfortunately the script didn't crash the vm. I think this could be related to nodejs' non blocking I/O architecture. What happens (at least I think this is what happens) is that npm asks very fast for multiple DNS entries and queueing the answer in a callback. So we get multiple simoultaneously DNS requests although the answer hasn't arrived yet.
     7But unfortunately the script didn't crash the vm.
     8
     9I think this issue could be related to nodejs' non blocking I/O architecture. What happens (at least I think this is what happens) is that npm asks very fast for multiple DNS entries and queueing the answer in a callback. So we get multiple simoultaneously DNS requests although the answer hasn't arrived yet.
    810What the script does is (if I read that correctly) opening sequently 100 dns queries and *waiting* for the reply before opening another.
    911Could this be right?
     
    1214
    1315I have no background with nodejs whatsoever, but I'll ask a friend of mine to write a nodejs script that opens many simoultaneously connections to one server and maybe that script will crash the VM as well.
     16
     17Please also note that I have a very fast internet link (100mbit) with a very low ping (usually < 10ms) and a direct connection (lan) to the router, so that might favor this issue. My MacBook is connected through WLAN, maybe that's one of the reasons why this doesn't happen there.

© 2023 Oracle
ContactPrivacy policyTerms of Use