Add an option to configure the analyze duration for network streams.

Fixes issue 368.