From: k@... Date: 2016-08-06T14:23:05+00:00 Subject: [ruby-core:76755] [Ruby trunk Bug#12661][Rejected] Multithreading http get doesn't work Issue #12661 has been updated by Kazuki Yamaguchi. Status changed from Open to Rejected You can't make multiple requests on a Net::HTTP instance at the same time. You have to open an HTTP connection for each thread. As for the segmentation fault, in trunk, r55100 should have fixed it ([Bug #12292]). ---------------------------------------- Bug #12661: Multithreading http get doesn't work https://bugs.ruby-lang.org/issues/12661#change-59971 * Author: Tim N * Status: Rejected * Priority: Normal * Assignee: Tim N * ruby -v: 2.3.1 * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- Hi, I was making this script that was supposed to download all files from my favourite imageboard (2ch.hk) Everything was normal until I tried to make downloading of these files asynchronous, i.e. in different threads, to improve speed I tried running this http://ideone.com/k2l4Hm but it never works (because of 16th line I suppose) And sometimes a huge report comes up in my terminal saying that I may have encountered a bug in Ruby So I decided to write about it here (the program may not work if the thread was deleted. if that happened, try to take one thread from 2ch.hk/b) -- https://bugs.ruby-lang.org/ Unsubscribe: