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

                 Summary: json protocol: Handle "multiple packets in buffer"
-case
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sat 07 Mar 2015 11:07:58 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:

Correttly shift and keep unhandled data in incoming buffer when handling json
-packets. Previously all of the data was scrapped (not *really*, but anyway
size of the buffer content was marked 0), breaking the stream when there's
multiple packets in queue. It seems that this has not been an big issue with
freeciv-web with proxy feeding the server relatively slowly, but trying to get
regular server and client to communicate with json-protocol on the same
machine never goes longer than just an packet or two without this fix. Not
that this alone would yet allow one to get succesfull login to the server.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 07 Mar 2015 11:07:58 AM EET  Name: JsonMultipacket.patch  Size: 2kB 
 By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to