Github user HuangWHWHW commented on the pull request:

    https://github.com/apache/flink/pull/992#issuecomment-130217420
  
    @mxm 
    Hi, thank you for suggestions.
    I will try to follow your suggestions and improve the test.
    I understand almost of yours and I also read the Class documentation of 
BufferedReader.read().
    When I was doing the test I found the BufferedReader.read() would never 
stop until it read next char from socket server or throw a Exception when 
socket is closed.
    Returning -1 in BufferedReader.read() seems to be only worked in text file 
instead socket message.
    And I looked for help in the net that some guys said you might add a 
method(Socket.setSoTimeout()) so the BufferedReader.read() would stop.
    But this way is not satisfied neither since it would throw a exception.
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to