Dart Limiting simultaneous connections -
i have interesting problem dart running in command line mode - fast!
the situation code has access web site , retrieve list of files can downloaded, downloads each file write local disk.
the problem each download operation running asynchronously , downloads starts failing errors 'socketexception: os error: semaphore timeout period has expired.' , 'connection closed before full header received'. far can determine os on pc failing open required connections or possibly web server been swamped.
how should change design limit number of simultaneous connections been made?
there several packages wich should make easy: