added pauseProducing function to producer as needed when handling https, also added connectionTimeout
added pauseProducing function to producer as needed when handling https, also added connectionTimeout