Actual Response:
Response From HTTP 1 1 For the Request 1
Response From HTTP 2 2 For the Request 2
Response From HTTP 3 3 For the Request 3
Response From Socket 1 1 For the Request 3
Expected Response:
Response From HTTP 1 1 For the Request 1
Response From HTTP 2 2 For the Request 2
Response From HTTP 3 3 For the Request 3
Response From Socket 1 1 For the Request 1
Response From Socket 2 2 For the Request 2
Response From Socket 3 3 For the Request 3
If the messages are delayed, then the output is as expected.
Here, uncomment the Line: 26 in App.java
to delay the messages.