[MISC] CraftProxy 0.2.0 - Reduce bandwidth use by caching chunk data [1.6]

Discussion in 'Archived: Plugin Releases' started by Raphfrk, May 1, 2011.

  1. Offline

    Raphfrk

    CraftProxy - Reduce bandwidth use by caching chunk data
    Version: 0.2.0

    Description

    This plugin and local client allows chunk data to be cached locally by players. This reduces the bandwidth required for hosting the server. It also helps users who are on slower connections.

    I am not sure what the status of this system is. It doesn't count as a plugin, since it has 2 parts.

    Even when running the plugin, players who don't use the client proxy can still connect. However, they will use the full bandwidth.

    The system can reduce bandwidth by 70-90% (after the 2nd login).

    Setup

    Server

    Add the plugin file to the plugins folder

    Client

    Start minecraft client and login
    Double click on the client jar file
    Enter login details
    Enter the server location/port in the GUI
    Press start on the GUI
    Connect to localhost on the minecraft client

    Stable Builds

    None yet

    Dev Builds

    Warning: These may not be stable

    Client
    Plugin

    Had it get the compress/decompression gain backwards.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
    Jushy, Martin1704, Nathan C and 24 others like this.
  2. Offline

    LEOcab

    RAPHFRK!!! [cake]

    I'm testing it right now! I'll let you know how it goes. :D
     
  3. Offline

    ultimateowner

    How can I configure this with a plugin like transporter to automatically reconnect someone to a second server (inter-server teleporting)? PLEASE help. Really need this to work.
     
  4. Offline

    LEOcab

    Hmmmm, it doesn't seem to work... On the client I get disconnected with "End of Stream" a few seconds after connecting. Here's the CP log:

    Code:
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 4, -13 adding fake init packet
    Expanded length: 41216
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 41216
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 4, -14 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 41216
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 4, -13 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 4, -14 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 51456
    [7:00:07 PM] 192.168.1.101/51638 (LEOcab): Chunk update packet sent for unallocated chunk 3, -13 adding fake init packet
    Expanded length: 51456
    Unknown packet Id 81
    Unknown packet Id 81
    0 23 0 26 f 64 7d 23 0 26 f 7d dc 23 0 26 f 70 62 1c 0 26 f 40 0 7 fd 8d 0 0 1f 0 26 f 40 0 0 f8 23 0 26 f 44 e4 3d 0 0 3 eb 0 0 4 40 70 ff ff f3 5a 0 0 0 0 34 0 0 0 44 ff ff ff 35 0 2 0 0 0 8 b 70 4 *81* a 70 4 7 1d 0 26 f 64 33 0 0 0 4a ff ff ff 2e 1 0 3f 0 0 0 0 a 21 0 0 0 0 78 9c ed 9c 59 6e e4 38 c 86 25 b 83 42 50 70 5c 29 60 9e fb 3c f5 e2 33 cf 5 6 98 3 4c 37 e6 2 49 ea 4 f1 58 a2 28 91 94 bc d5 92 a5 c3
    [7:00:08 PM] 192.168.1.101/51638 (LEOcab): Downstream link
    [7:00:08 PM] 192.168.1.101/51638 (LEOcab):  Unable to read packet
    [7:00:08 PM] 192.168.1.101/51638 (LEOcab): Packets: [32, 35, 35, 35, 35, 35, 35, 35, 35, 35, 33, 35, 35, 35, 28, 31, 35, 61, 52, 0]
    [7:00:08 PM] 192.168.1.101/51638 (LEOcab): Closed connection to server
    [7:00:08 PM] 192.168.1.101/51638 (LEOcab): Closed connection to client
    
    Weird :eek:
     
  5. Offline

    Raphfrk

    Does this happen for everyone ?

    Can you try deleting the CPL_cache directory. Packet 52 is related to that.

    Fixed some problems with packet "51", so hopefully it won't crash anymore.

    Still have to actually fix the caching though.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  6. Offline

    ShadowDrakken

    So I'm a bit confused... you updated it for 1.2.3, but now it doesn't cache... meaning it's a plugin that literally does nothing now until you fix caching, right? So it's not REALLY updated to 1.2.3 if you think about it... lol ;)
     
  7. Offline

    Heliwr

    I for one never used it for the caching, I find it useful for facilitating interserver teleporting.
     
  8. Offline

    Raphfrk

    Well, the first step is to make sure that I have correctly updated the protocol. There is no point in updating the caching until everything else is stable.

    1.2.3 has a pretty big change to how chunks are handled. This means that the caching system will need to be changed to handle it. Previous updates normally changed packets that were unrelated to how chunks are sent.

    Also, the proxy also allows reconnecting between servers.
     
  9. Offline

    ShadowDrakken

    Ah, didn't realize about the inter-server connectivity, I used it for bandwidth saving so I could have more than 1 friend connected at a time, lol. Anvil helps a lot since it has to transmit less now, but caching still improves that quite a bit :)

    Hoping to see an Anvil caching version soon :D This is the only plugin I'm terrified to try and code on my own XD
     
  10. Offline

    rickky

    Thank you!Can you update serverport?
     
  11. Offline

    Raphfrk

    That seems the most popular usage. However, the reason I wrote it originally was to support server to server teleporting without the need for a client modification.

    Caching is always going to be better than improved compression. Inherently, telling the client to pull data from a local cache is smaller than trying to compress it.

    The problem is that previously I only had to uncompress the data and if it was 81920 bytes long, then it was a full chunk.

    The new format is variable sized.

    Latest update should do caching with the new protocol.

    I changed it so that it attempts caching on all chunk packets that are more than 16384 (uncompressed) bytes long.

    It expands the data to the next 2048 byte boundary and then applies caching on each 2048 byte portion.

    Full chunk packets have data in 4096 and 2048 sections (and one at the end of 256 bytes). This means that everything should still be aligned with my 2048 byte portions. 4096 byte sections will be split into 2 for caching. The 256 byte one will be padded with zeros and cached.

    Most packets above 16384 should be full chunk packets, so it shouldn't accidentally cache much unaligned data. This would just waste a little RAM and disk space, so isn't a big deal.

    The plugin isn't actively supported anymore. Transporter also has the same functionality, but I don't think it is supported either :(.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  12. Offline

    Simanova

    Some errors occurred while testing on 1.2.3:

    > bad packet id 244

    > a lot "unallocated chunk"
    > end of stream

    # Cant stay longer online than 5 seconds
    # Compression is ok (above 60%, almost 75%)

    If you need further debug, please tell me what i should do exactly :)
     
  13. Offline

    Pr4w

    Ack, nooo ! Transporter doesn't work anywhere near as well as ServerPort does...
    ServerPort's config may not be as pretty, but it's efficient ! Transporter's gates die all the time, links get lost and don't get picked up, permissions are a mess... It's not stable or reliable on the long term. :(
     
  14. Offline

    ultimateowner

    Raphfrk, can you please link me to a tutorial or something to get inter-server teleporting? Or be kind enough to explain to me how to do it? :)
     
  15. Offline

    Raphfrk

    I have update Serverport (though not Suite), but that is just so that it supports the new system.

    Is that the only log? It normally gives more info.

    Are you using the password system to connect between proxies?
     
  16. Offline

    Eeketh

    I am also getting an issue with staying logged in no longer than a few seconds...

    From CraftProxy..
    From Minecraft...
     
  17. Offline

    Raphfrk

    I fixed a bug with the LAN to LAN password system, but that shouldn't be causing this problem.

    Packet type 0x52 shouldn't be happening during general connection.

    Are you guys connected for a short while anyway?

    Also, are there many people on the server when you test it?

    Updated again, the packet buffers were sized based on the old packet sizes. This may have been the issue, though they should have been ok anyway.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  18. Offline

    Crast

    I'm using it as a plugin (not commandline /standalone) on the server side, and GUI on the client side, was hoping to get some packet caching love, with 1.2.3-R0.2. It seems to work perfectly, save for a super huge amount of spam in the server log.

    I tried messing with the config file, but let it go back to the defaults, either way I get this (replaced my IP with 1.2.3.4 for obvious reasons):

    Code:
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -4 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -4 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -4 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -4 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -4 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -3 adding fake init packet
    00:15:51 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -4 adding fake init packet
    00:15:52 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 1, -3 adding fake init packet
    00:15:52 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -4 adding fake init packet
    00:15:52 [INFO] 1.2.3.4/35607 (crast): Chunk update packet sent for unallocated chunk 2, -3 adding fake init packet
    ad nauseum. The log spam happens whenever I move, warp, or login, and continues for a while till everything's loaded, and won't happen if I stand still.
     
  19. Offline

    rickky

    Creeper and tnt explosion then i get this error
    Code:
     Unknown packet Id f5
    Unknown packet Id f5
    bb e8 cf a3 91 d5 3f 36 fd d8 f8 e3 c1 7e eb 3f d3 97 e3 f5 5b 3e 7f e8 bf 56 fd
    24 51 fd 24 55 fd 24 8d a4 fe 49 1a aa 3e de 3b 7f ff f8 fe 4d b7 7c ff fe 3 2e
    b2 77 b1 34 ff ff ff fc ff ff ff f3 0 12 0 0 0 48 f7 43 0 0 f6 43 0 0 *f5* 45 0
    0 f6 45 0 0 f7 45 0 0 f8 45 0 0 f6 46 0 0 f5 44 0 0 f7 46 0 0 f8 44 0 0 f6 44 0
    0 f8 46 0 0 e7 45 0 0 f7 47 0 0 f8 47 0 0 f6 47 0 0 e6 44 0 0 e7 44 0 0
    Code:
     127.0.0.1/24358 (): Downstream link
    127.0.0.1/24358 ():  Unable to read packet
    127.0.0.1/24358 (): Packets: [29, 29, 29, 29, 29, 29, 8, 32, 35, 28, 31, 31, 35, 31, 32, 35, 28, 52, 0, 0]
    127.0.0.1/24358 (): Closed connection to server
    127.0.0.1/24358 (): Closed connection to client
    Code:
    end of stream
    many
    Code:
    127.0.0.1/24691 (): Chunk update packet sent for unallocated chunk -1, -2 adding fake init packet
    127.0.0.1/24691 (): Chunk update packet sent for unallocated chunk -1, -2 adding fake init packet
    127.0.0.1/24691 (): Chunk update packet sent for unallocated chunk -1, -2 adding fake init packet
    127.0.0.1/24691 (): Chunk update packet sent for unallocated chunk -1, -1 adding fake init packet
    127.0.0.1/24691 (): Chunk update packet sent for unallocated chunk -1, -2 adding fake init packet
    127.0.0.1/24691 (): Chunk update packet sent for unallocated chunk -1, -1 adding fake init packet
    127.0.0.1/24691 (): Chunk update packet sent for unallocated chunk -1, -1 adding fake init packet
    Code:
    127.0.0.1/24691 ():  Unable to read packet
    127.0.0.1/24691 (): Packets: [31, 35, 28, 31, 31, 35, 31, 51, 32, 35, 31, 35, 28, 31, 28, 28, 35, 51, 52, 0]
     
  20. Offline

    ShadowDrakken

    Raphfrk even though the chunks are variable size, will a given chunk always be sent as the same size as long as it hasn't been modified? If so, then simple CRC on either the compressed or uncompressed chunk (shouldn't make a difference if there hasn't been a change, right?) should be a reliable way to verify if the cache is up-to-date right? Or is that what you're already doing? (sorry, trying to be helpful, I really love this plugin)
     
  21. Offline

    ultimateowner

    Trying to accomplish autoreconnect in inter-server teleporting (serverport). Can anyone please help me? I can't get it to work correctly. I was only able to set up serverport, not automatic reconnection with craftproxy.
     
  22. Offline

    ulposch

    hi,
    either i'm doing something wrong or this plugin is not compatible with my craftbukkit version, but i would love to get it running.
    if i use version 142 or sooner i can't connect. in mc i get the error: string lenth of .... is higher than max. the number changes with every try. the server log shows unknown packet id 6f. i tried using older versions, but that changes nothing.
    then i tried using the newest version, but then i get a login timed out error. the reason for this could be, that i use craftbukkit R3.
    I can't update craftbukkit because i use a premodded craftbukkit R3 (1846) from mcportcentral with ic2, buildcraft 2.12.2 and redpower2. i also use chunkenforcer to keep my factory loaded even when there are no players around.

    do you have any idea what i could do to get craftproxi running or do i have to wait till i can update my server to mc1.2? this would be unfortunate, because at the moment i'm waiting for stable releases of my plugins. if you need any more info just ask.
     
  23. Offline

    Simanova

    Iam actualy testing version 149 of craftproxy with bukkit 2084.

    Until now the debug shows: ( a lot of )
    No disconnects so far.
    Ill try to keep you up to date.

    Update 1:
    Disconnect after hitting an iron golem with a stone shovel. ( i think its not the reason )
    Update 2:
    Disconnect while traveling through undiscovered world
     
    ShadowDrakken likes this.
  24. Offline

    Raphfrk



    packet 52 is the chunk update packet, so it is exploding when sending one of those. Those logs are server side proxy right ?

    The system is based on 2048 byte arrays.

    Originally, a full chunk was 81920 bytes which is 40 2048 arrays.

    Effectively the cache is lots of

    <64-bit key> : <2048 byte array>

    The client side tells the server what keys it has. When sending a chunk, the server computes the hash of the 40 in the chunk and if any of them match ones the client said, then the server doesn't send that 2048 part of the chunk.

    The client makes sure Hash(key) = 2048 byte array when reading from the disk, in case there was a write error.

    The problem is likely that I have done something wrong with my new cache packet format.

    The new system expands the chunk data to the next 2048 byte size and has a smaller number of stripes.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  25. Offline

    Pr4w

    I love you. :)
     
  26. Offline

    Raphfrk

    I updated to 150. They changes might help, but I couldn't find any obvious problem with the code.
     
  27. Offline

    ShadowDrakken

    Gonna go ahead and give it a shot with my group and report back any findings :)

    No good, it dumped player connections almost immediately, took all of about 2 minutes :(
    This is with v150

    ServerLog (open)
    2012-03-21 15:39:00 [INFO] Connection from 192.168.2.103/56703
    2012-03-21 15:39:00 [INFO] 192.168.2.103/56703: Forwarding ping
    2012-03-21 15:39:09 [INFO] Connection from 192.168.2.103/56705
    2012-03-21 15:39:09 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Connecting to : localhost 25565
    2012-03-21 15:39:09 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Attempting to connect to: localhost:25565
    2012-03-21 15:39:09 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Connecting to: localhost:25565 from 127.0.10.10
    2012-03-21 15:39:09 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Connection successful
    2012-03-21 15:39:09 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Connecting using proxy to server connection format
    2012-03-21 15:39:10 [INFO] PlayerNameRemoved [/127.0.10.10:55569] logged in with entity id 296 at ([world] 127.65058371492367, 57.0, 288.705058052784)
    2012-03-21 15:39:10 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Server login successful
    2012-03-21 15:39:10 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Client requested caching mode
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:11 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:12 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:12 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:12 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:39:12 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet

    (trimmed due to post size limit, just tons of the same anyway)

    2012-03-21 15:40:29 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:40:29 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:40:29 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:40:29 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:40:29 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:40:29 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 15:40:29 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk -1, 1 adding fake init packet
    2012-03-21 15:40:30 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk -1, 1 adding fake init packet
    2012-03-21 15:40:30 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 1, 1 adding fake init packet
    2012-03-21 15:40:30 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk -1, 1 adding fake init packet
    2012-03-21 15:40:30 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Chunk update packet sent for unallocated chunk 1, 1 adding fake init packet
    2012-03-21 15:40:48 [INFO] IO ERROR
    2012-03-21 15:40:48 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Timeout
    2012-03-21 15:40:48 [INFO] PlayerNameRemoved lost connection: disconnect.quitting
    2012-03-21 15:40:48 [INFO] Connection reset
    2012-03-21 15:40:48 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Unable to flush output stream
    2012-03-21 15:40:48 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Closed connection to server
    2012-03-21 15:40:48 [INFO] 192.168.2.103/56705 (PlayerNameRemoved): Closed connection to client


    I tried turning on debugging in the CraftProxy config, but it gave no additional information :\

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  28. Offline

    Raphfrk

    What version of CraftBukkit are you guys using? Maybe it is a version mismatch
     
  29. Offline

    ShadowDrakken

    I'm using 1.2.3-R0.3
     
  30. Offline

    Raphfrk

    I updated again to reduce spam (and prevent spamming on the init packet).

    This might help if it was simply some kind of timeout thing due to all the spam.

    Also, if someone wants to point me to where I could download a "complex" world map, that could help too. You could PM me the URL if you don't want it public.

    I think my problem could be that I have mostly maps created by world gen.

    Also, if there are spots which cause problems, you could give me the coords on the map.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  31. Offline

    ShadowDrakken

    Ok, so it looks like there's two things going on... packet flooding does indeed appear to have been the cause of the disconnects, because I don't seem to be disconnecting anymore... however, every time I cross from one chunk to another, there's 1-2 seconds of lag and jittering still, so something odd is going on there

    Here's the current server log
    server.log (open)
    2012-03-21 16:23:07 [INFO] Connection from 192.168.2.103/57235
    2012-03-21 16:23:07 [INFO] 192.168.2.103/57235: Forwarding ping
    2012-03-21 16:23:08 [INFO] Connection from 192.168.2.103/57237
    2012-03-21 16:23:08 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Connecting to : localhost 25565
    2012-03-21 16:23:08 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Attempting to connect to: localhost:25565
    2012-03-21 16:23:08 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Connecting to: localhost:25565 from 127.0.10.10
    2012-03-21 16:23:08 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Connection successful
    2012-03-21 16:23:08 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Connecting using proxy to server connection format
    2012-03-21 16:23:13 [INFO] PlayerNameReplaced [/127.0.10.10:55766] logged in with entity id 296 at ([world] 120.65625, 57.0, 289.0625)
    2012-03-21 16:23:13 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Server login successful
    2012-03-21 16:23:13 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Client requested caching mode
    2012-03-21 16:23:14 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Chunk update packet 0x33 sent for unallocated chunk 0, 1 adding fake init packet
    2012-03-21 16:23:15 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Chunk update packet 0x33 sent for unallocated chunk 0, 0 adding fake init packet
    2012-03-21 16:23:26 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Chunk update packet 0x33 sent for unallocated chunk -1, 1 adding fake init packet
    2012-03-21 16:23:26 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Chunk update packet 0x33 sent for unallocated chunk -1, 0 adding fake init packet
    2012-03-21 16:23:28 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Chunk update packet 0x33 sent for unallocated chunk 1, 1 adding fake init packet
    2012-03-21 16:23:30 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Chunk update packet 0x33 sent for unallocated chunk 1, 0 adding fake init packet
    2012-03-21 16:28:59 [INFO] PlayerNameReplaced lost connection: disconnect.quitting
    2012-03-21 16:28:59 [INFO] Connection reset
    2012-03-21 16:28:59 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): EOF reached
    2012-03-21 16:28:59 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Closed connection to server
    2012-03-21 16:28:59 [INFO] 192.168.2.103/57237 (PlayerNameReplaced): Closed connection to client
     

Share This Page