How to change Java ROME parser default socket timeout? -
i parsing fair amount of rss feeds in cascade using java rome xml parser. 1 of rss feeds might unreachable because of network issues, results in socket timeout when trying create xmlreader object ( new xmlreader(url)).
the problem default timeout lasts 2 decades , when happens it's slowing down whole process.
is there way change default socket timeout in java rome?
when create xmlreader object ( new xmlreader(url))
, have urlconnection
object passed argument xmlreader
. call, setconnecttimeout(long)
of urlconnection , set timeout value. dont think rome provides connection timeout options
Comments
Post a Comment