Describe the bug
VDMS keeps in an infinite loop when it doesn't receive a valid response from the udf_server or udf_local servers
To Reproduce
Steps to reproduce the behavior:
- Open the udf_local.py file located at tests/udf_test directory.
- Edit the file and add an invalid module name to be imported.
For example add the line "import blahblah" in the first line of the file.

- Go to the tests directory.
- Run the following command:
./run_tests.sh -n VideoTest.UDFWriteWithMetadata
You could test the same issue with other test cases related to UDF:
./run_tests.sh -n CLIENT_CPP.add_image_dynamic_metadata
-
Verify the log file called "tests/tests_udf_log.log" displays an error message related to the invalid module name "blahblah"

-
Verify the test called "VideoTest.UDFWriteWithMetadata" never ends and VDMS hangs.

Expected behavior
- VDMS should handle the error by setting a timeout to the sockets in Video.cc and Image.cc files
- VDMS should return an error once the timeout error is thrown
- The test case should fail.