Trial 1 : 
	example2.cpp
	example2.png

	Example 2 (https://dev.mysql.com/doc/connector-cpp/1.1/en/connector-cpp-examples-complete-example-2.html) 
	with slight modification (added sleep after executeUpdate()).
	
	Stuck after unplugging the ethernet cable. tcp connection remain in ESTAB state for a long time.
	Please Refer to example2.png.


Trial 2 : 
	example2_a.cpp
	example2_a.png

	Used ConnectOptionsMap and OPT_WRITE_TIMEOUT :

		sql::ConnectOptionsMap connection_properties;
		connection_properties["hostName"] = "tcp://192.0.0.93";
		connection_properties["userName"] = "durgesh";
		connection_properties["password"] = "";
		connection_properties["schema"] = "log";
		connection_properties["port"] = 3306;
		connection_properties["OPT_WRITE_TIMEOUT"] = 5;

	Stuck after unplugging the ethernet cable. tcp connection remain in ESTAB state for a long time.
	Please Refer to example2_a.png.



Trial 3 : 
	example2_b.cpp
	example2_b.png

	Used ConnectOptionsMap and OPT_READ_TIMEOUT :

		sql::ConnectOptionsMap connection_properties;
		connection_properties["hostName"] = "tcp://192.0.0.93";
		connection_properties["userName"] = "durgesh";
		connection_properties["password"] = "";
		connection_properties["schema"] = "log";
		connection_properties["port"] = 3306;
		connection_properties["OPT_READ_TIMEOUT"] = 5;

	Worked fine.I got the Exception (with Error Code 2013) and tcp connection state also changed from ESTAB FIN-WAIT-1.
	Please Refer to example2_b.png.






