make the timeout a configuration variable for the producers and a default one for the consumers