VDMS hangs when the test case does a request to udf_server or udf_local and they don't respond with a valid response
- Dominant language
- C++
- Stars
- 93
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
**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:
1. Open the udf_local.py file located at tests/udf_test directory.
2. 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.

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

7. 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.
Contributor guide
Assessment
This issue has not been assessed yet.