URL:
  <http://gna.org/patch/?5934>

                 Summary: Memory block sending support to json protocol
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 12 Mar 2015 09:13:22 AM EET
                Category: freeciv-web
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 3.0.0

    _______________________________________________________

Details:

Most notable user of the memory block functions is the delta header, which so
far would have not worked at all from web-client to server direction, and has
not caused problelms in server to web-client direction only because client
always (unless some place does not -> bugs) just appends new data to the
existing one, ignoring the delta header in any case.

The biggest risk with this patch is related to the (existing bug) that json
protocol buffers are allocated based on MAX_PACKET_SIZE etc values suitable
for the raw-protocol. Json packets are bigger than raw-protocol ones, so
identical content in json packet may cause size limits to be reached. This
patch adds delta header fields to the json packets.

This would make it possible to use delta protocol from web-client to server
direction too, but I don't know if implementing the web-client changes to take
advantage of that is feasible.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 12 Mar 2015 09:13:22 AM EET  Name: JsonMemBlock.patch  Size: 4kB  
By: cazfi

<http://gna.org/patch/download.php?file_id=24063>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?5934>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to