Aug. 1st, 2015

andrewducker: (bullshit detector)
I'm working on fixing a variety of odd bugs in the link poster, and one of the annoying ones was that posts to Wordpress.com 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 Wordpress.com 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.
andrewducker: (Calm Down)
Following from my earlier discovery that the Apache XMLRPC library isn't good enough (or supported), I tried out the Redstone one. And discovered that it allows me to set _even less_ options.

So, fuck it, I guess tomorrow I'm downloading the source to the Apache one and making it work for Google App Engine. How hard can it be?

May 2025

S M T W T F S
     1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 21st, 2025 09:31 pm
Powered by Dreamwidth Studios
OSZAR »