Andrew Ducker (andrewducker) wrote,
Andrew Ducker

An afternoon of playing with Java XML RPC libraries is not fun.

I'm working on fixing a variety of odd bugs in the link poster, and one of the annoying ones was that posts to would time out pretty much every time.

The post would still go through, and everything works fine - except that I end up with an error in the logs, and the status of that post is an error message rather than "Yay! You posted a thing!".

So, on the grounds that my code is perfect, I assumed that was somehow doing something that timed me from there end. Clearly, in retrospect, this was a very stupid thing to think.

Because the _actual_ answer is that the default timeout for a URL fetch from Google App Engine is 5 seconds. And the WordPress site is taking about eight seconds to make the post and then tell me it has.

And there's no way for me to change the default. And the library I'm using lets you change the timeout for some transports, but not the one that AppEngine supports - even though App Engine supports setting the timeout.

And it turns out that this project, which is the one that all Google searches take you to, if you search for "XML-RPC Java", is no longer supported, and hasn't been updated since 2010.

So my options are:
1) Download the source code for an unsupported library and update it myself.
2) Switch libraries.

Both of which sound awful, but the latter sounds slightly less awful.

I may spend half an hour being repeatedly killed by Manus instead.

Original post on Dreamwidth - there are comment count unavailable comments there.

  • Interesting Links for 19-10-2021

    Lord Chancellor, there is already a mechanism for the law to be changed: it is called Parliament (tags: law uk fascism ) Dolphins living off…

  • Interesting Links for 18-10-2021

    Six things the UK could do to tackle climate change (tags: globalwarming uk ) Real Names: the wrong tool for the wrong problem (tags: names…

  • instagram cross-post

    Waiting for dance class to begin. Original is here on instagram. Original post on Dreamwidth - there are comments there.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened