Back to All CourseworkComputer networks
Course ProjectInteractive Web Demo

Multi-threaded HTTPS Parallel Downloader

A robust C utility that queries file metadata via HEAD requests, splits files into parallel byte ranges, and reassembles segments over TLS.

My Contribution: I built the multithreaded architecture, range request dispatcher, and segment stitcher in C.
CCPOSIX ThreadsOpenSSLHTTP Range
Live Browser Simulation

Concurrent Range Assembly Simulator

Client-Side Engine
Try this: Simulate random socket connection drops and observe chunk-level retries.

Loading simulation engine...

Architecture verification: POSIX pthread and OpenSSL architecture verified against standard HTTP range servers.

Implementation Highlights

  • Queries remote Content-Length using TLS HEAD requests, calculating chunk boundaries.
  • Spawns POSIX worker threads per byte range with independent OpenSSL sessions.
  • Per-part exponential retry handling (MAX_RETRIES = 3) with isolated disk writes.
  • Atomic sequential file reassembly upon thread join completion.

Algorithm & System Mechanics

  • Leverages HTTP Range headers ('bytes=start-end') to allow non-contiguous concurrent downloading.
  • Independent segment files eliminate thread lock contention during high-speed transfers.