Improving the networking code

Goals and todos for improving the networking code

  • (./) Threaded IO

  • (./) Use httplib2 as backend (See httplib2 - Issues below)

Threaded IO

Please note that this branch has already been merged into the trunk.

You can test branches using the following command:

  •  STRAW_IN_SOURCE_DIR=1 STRAW_THREAD_DNS=1 src/straw

Networking cleanup - prototype of threaded network IO (URLFetch_threaded.py)

httplib2

httplib2 is an almost complete HTTP library that has no third-party library requirement other than the ones in the Python standard library.

Issues

  1. Proxy support
  2. Caches images as well which duplicates what we already have in the cache DB

Solution

  1. Implement proxy support ASAP
    1. Done for basic proxy support (no authentication)
  2. Either use httplib2's cache for images or hack httplib2 to have a generic Cache interface and extend it for Straw

Attic/Straw/NetworkCode (last edited 2018-01-14 21:30:04 by SvitozarCherepii)