You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/12/11 09:24:54 UTC
svn commit: r1719276 -
/tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java
Author: markt
Date: Fri Dec 11 08:24:54 2015
New Revision: 1719276
URL: http://svn.apache.org/viewvc?rev=1719276&view=rev
Log:
Fix one FindBugs and one Javadoc warning
Modified:
tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java
Modified: tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java?rev=1719276&r1=1719275&r2=1719276&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/websocket/server/TesterWsCloseClient.java Fri Dec 11 08:24:54 2015
@@ -66,8 +66,9 @@ public class TesterWsCloseClient {
private void readUpgradeResponse() throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(
socket.getInputStream()));
- while (!in.readLine().isEmpty()) {
-
+ String line = in.readLine();
+ while (line != null && !line.isEmpty()) {
+ line = in.readLine();
}
}
@@ -78,7 +79,7 @@ public class TesterWsCloseClient {
socket.close();
}
- /**
+ /*
* Send a TCP RST instead of a TCP closing handshake
*/
public void forceCloseSocket() throws IOException {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org