From a5a5421c5a278b6e21d298358af2357d7293dd0d Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 21 May 2013 11:36:01 +0200 Subject: [PATCH] small tweak to pubsubhubbub --- .../com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java | 2 ++ .../frontend/rest/resources/PubSubHubbubCallbackREST.java | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java b/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java index e98b43e9..7fc2f47d 100644 --- a/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java +++ b/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java @@ -59,6 +59,8 @@ public class SubscriptionHandler { HttpClient client = HttpGetter.newClient(); try { + // make sure the feed push infos have been updated to the database + Thread.sleep(1000); post.setEntity(new UrlEncodedFormEntity(nvp)); HttpResponse response = client.execute(post); diff --git a/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java b/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java index ad70a8cf..501f749c 100644 --- a/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java +++ b/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java @@ -79,7 +79,6 @@ public class PubSubHubbubCallbackREST { @POST @Consumes({ MediaType.APPLICATION_ATOM_XML, "application/rss+xml" }) public Response callback() { - log.info("content callback received"); try { byte[] bytes = IOUtils.toByteArray(request.getInputStream()); FetchedFeed fetchedFeed = parser.parse(null, bytes);