Tosti
with cheese >:(
better than mayonese.
(I’m testing the new push-notifications)
good luck with that. whatever it is!
mkay, push notifications work.
there is a heartbeat every 30s, within 1 http response, and you get notified of a new topic in about 1 sec, it also tells you when there is a new message in the topic you’re watching.
I enabled this for guests too, and the server-load actually went down (java impl)
please try to break it
Hasn’t JGO always had push notifications?
it had polling for ~10 concurrent users (logged in members), which was grinding the server to a halt…
Now all ~100-200 users (members & guests) are connected and waiting for notifications, and the server hardly notices.
PHP vs Java baby! :yawn:
Wow! Why was PHP causing such a slowdown?
I imagine because it is push vs poll.
It’s because an Apache+PHP+SMF HTTP request takes about 75-200ms of CPU time, while a Java HTTP request takes about 0.1ms of CPU time.
I could go into detail about how awesome my custom webserver is, but I’ll leave that for another day.
Wants to take a look at Riven’s java webserver
The guts of it: (it’s a mess, too)
[x] http://pastebin.java-gaming.org/ec91c756615
[x] http://pastebin.java-gaming.org/c91c586651f
You’re awesome Riven. Can’t say anything else here so…
By the way, can you add a download button for the integrated pastebin?
Thanks!
Nope. It won’t compile anyway, it lacks a few dozen utility classes. Also, it’s not meant to be usable, which is both enforced by the pastebin-release and the code quality.
(You should be happy that I added code-block-separators in the pastebin :persecutioncomplex:)
You can see I wrap Input/OutputStreams which is surprisingly powerful, expecially UnclosableOutputStream :persecutioncomplex: because all kinds of utility-methods close the stream at the end of their run, or other classes like GZipOutputStream actually require a close() to finalize the stream, but you really don’t want to close the underlying tcp-connection… hence the Unclosables.
You got me wrong ^^
I don’t want to download JUST your code, but every pastebin shared here. A simple download button that leaves a pastebin[some_numbers_or_name].text in my desktop/download folder will be greatly appreciated
But, but, that’s even more of a hassle!
Just copy/paste from the textarea, mkay?
My answer to that was summed up nicely in your first sentence. :
It’s not my role to make your life any easier. Further, it’s not my intension to make my life any easier either. Last saturday I visited some uncle I hadn’t seen in three years and I basically told him the same. Later we had a wonderful dinner and I complimented him on his cooking. I lost my train of thought but I mask it by looking confident.