User defined controller timeout for connection from switch

We should remove the hard coded value for the connection timeout. It should be defined by the run time arguments. Currently, it is hard coded with 20 sec as timeout period.