|
Another Filtering Proxy
|
|
May. 28, 2015, 09:53 AM
Post: #18
|
|||
|
|||
RE: Another Filtering Proxy
(May. 28, 2015 04:26 AM)cattleyavns Wrote: I'm adding proxy feature to AFProxy using proxy_from_url, but I want to patch above problem by set headers = self.headers (req.headers in URLFilter.py) I am not sure if I get your point, but self.headers is available as req.headers in URLFilter.py, and you can operate it freely as you want. (May. 28, 2015 04:26 AM)cattleyavns Wrote: - But problem is with threading "join()", we cannot stream file or write file to disk instantly like Free Download Manager/Flashget software because "join()" wait for all thread finish. I think you can create the file in advance, and in each thread write the data to specified offset via f.seek(offset, from_what). Also you need to take care of Semaphore acquire() and release(). They are all documented in the manual. |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)