diff --git a/src/java/org/jivesoftware/multiplexer/net/http/HttpSession.java b/src/java/org/jivesoftware/multiplexer/net/http/HttpSession.java index 99e1df0..06e1017 100644 --- a/src/java/org/jivesoftware/multiplexer/net/http/HttpSession.java +++ b/src/java/org/jivesoftware/multiplexer/net/http/HttpSession.java @@ -90,8 +90,10 @@ private void checkPollingInterval() throws HttpBindException { long time = System.currentTimeMillis(); - if(lastPoll > 0 && ((lastPoll - time) / 1000) < maxPollingInterval) { - throw new HttpBindException("Too frequent polling", true, 403); + if(lastPoll > 0 && ((time - lastPoll) / 1000) < maxPollingInterval) { + throw new HttpBindException("Too frequent polling minimum interval is " + + maxPollingInterval + ", current interval " + ((lastPoll - time) / 1000), + true, 403); } lastPoll = time; }