« first day (114 days earlier)      last day (1310 days later) » 

10:10 AM
@Scratte should I pay attention to this type of errors?
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:171)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
        at sun.security.ssl.InputRecord.read(InputRecord.java:503)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:990)
 
10:29 AM
Not sure really..
I expect you get a timeout while reading. That would be bad, no?
 
@Scratte it won't scan any posts
(for that minute)
 
Huh? You mean the entire application just goes to sleep?
 
@Scratte no, but the hashmap postIdsAndTitles will be empty
which means that no posts will be scanned
because it failed to get them from the API
 
Can the API side timeout?
 
huh?
 
10:40 AM
It times out on the socket. It that the java application saying "This is taking too long, abort" or is it Stack saying it?
 
I don't know
but we can increase the timeout, right?
 
I think so. I can't remember how to do it though. Maybe you can find a super low-effort how-to Question on Stack that escaped the mob :D
 
Awesome :) Is that 20 seconds?
The other answer on that post explain about the server timeout. Not sure how you're running it, but I assume your server also has a timeout.
 
10:57 AM
grr... contains solution in the question body
something that the bot is supposed to catch
> The default timeout is 30 seconds (30,000 millis). A timeout of zero is treated as an infinite timeout.
30 secs sounds enough to me
also, how does maven download jsoup when it's not in POM?
 
11:46 AM
@Scratte the monitor seems to stop scanning after some time
it listens to commands, etc., but there are no more "received an API response" messages
 
@double-beep Now that solution is nowhere in the thread :D
 
> Also, as the OP notes in the edit, this can also be set using timeout(0). However, as the javadocs state:
 
Ahh.. well. I added it as a comment.
@double-beep SO how it just sits idle?
@double-beep Does some other dependency depend on that?
 
@Scratte I'll look into that
 
maven will download transient dependencies, meaning anything that your dependencies depends on.
 
11:55 AM
@Scratte the process of checking posts is run every 60 seconds
if the call to /posts fails, that means there are no posts to scan
so it'll wait
I'm also not sure what javax.json:javax.json-api is
the code uses com.google.code.gson for JSON processing
 
@double-beep In java8, a lot of javax was just a part of java.
 
then I can safely remove it I suppose
I don't see it used anywhere
and chatexchange is using com.google.code.gson, too
 
It's easily tried, no? :)
I mean.. if it compiles, then it's not being used. Unless it's a service, then runtime will tell you :D
 
12:18 PM
At least it's easier to maintain with less dependencies and less code.
I need to get a banana.. but it's in the shop.
 

« first day (114 days earlier)      last day (1310 days later) »