PaperMC / Waterfall

BungeeCord fork that aims to improve performance and stability.
https://papermc.io
MIT License
743 stars 297 forks source link

Rest API of spark blocked by waterfall #727

Closed einfachBlu closed 2 years ago

einfachBlu commented 2 years ago

Hey, i have a plugin that initializes a RestAPI with Spark. I can access that rest api if i use BungeeCord, but not when using Waterfall. The connection just timed out. In Waterfall Console is nothing showing up, no error or exception. it just blocks incoming traffic (as it seems)

i have tested it with default generated bungeecord and waterfall config.

electronicboy commented 2 years ago

waterfall doesn't have any logic which would explicitly do that, timing out would generally imply an environment aspect, i.e. routing, but, god knows

einfachBlu commented 2 years ago

idk why its happening to waterfall, but it does somehow. if i use the exact same environment but with waterfall, its not working as it does when using bungeecord

electronicboy commented 2 years ago

We'd need more info or something, reliable replication, etc, etc; there's nothing for us to work from here

einfachBlu commented 2 years ago

replication is simple:

einfachBlu commented 2 years ago

Example Code:

Spark.port(15000);
Spark.get("/hello", (request, response) -> {
  return "received, its working";
});

Spark.awaitInitialization();
compile "com.sparkjava:spark-core:2.9.3"

Url: localhost:15000/hello

einfachBlu commented 2 years ago

Okay, i have found the bug. It was my fault. The listener was blocked async, because i tried to acces the proxy.log.0 file, which does exist in bungeecord but not in waterfall