Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/http
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv31011/src/org/sblim/cimclient/internal/http
Modified Files:
Tag: Experimental
HttpConnectionHandler.java
Log Message:
2635 Slowloris DoS attack for CIM indication listener port
Index: HttpConnectionHandler.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/http/HttpConnectionHandler.java,v
retrieving revision 1.4.2.7
retrieving revision 1.4.2.8
diff -u -d -r1.4.2.7 -r1.4.2.8
--- HttpConnectionHandler.java 16 May 2013 18:55:52 -0000 1.4.2.7
+++ HttpConnectionHandler.java 20 May 2013 19:15:04 -0000 1.4.2.8
@@ -245,7 +245,7 @@
*
* @return The comma-separated list of blocked IPs.
*/
- public String getBlockedIPs() {
+ public synchronized String getBlockedIPs() {
return (this.iBlockedIPs == null) ? null : this.iBlockedIPs.toString();
}
@@ -256,7 +256,7 @@
* @param pIPs
* The comma-separated list of blocked IPs.
*/
- public void setBlockedIPs(String pIPs) {
+ public synchronized void setBlockedIPs(String pIPs) {
this.iBlockedIPs = (pIPs == null || pIPs.trim().length() == 0) ? null : new StringBuilder(
pIPs);
}
|