patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9605, makefsdata: added options to skip...


You are not allowed to post comments on this tracker with your current authentication level.

patch #9605: makefsdata: added options to skip and avoid compressing some extensions

Submitted by:  Giuseppe Modugno <giusloq>
Submitted on:  Mon 19 Mar 2018 01:07:34 PM UTC  
Category:  apps Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  Simon Goldschmidt <goldsimon> Open/Closed:  Closed
Planned Release:  None

Tue 03 Apr 2018 07:10:04 PM UTC, comment #3: 

Since I don't have time to work on the suggestions, pushed for now. Thanks for the patch.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 29 Mar 2018 08:56:32 AM UTC, comment #2: 

Maybe PathMatchSpec under Windows.

In that case I don't know if it is better to scecify a file with wildcard patterns, instead of entering a list of wildcard patterns at the command line.

Indeed I don't know what happens if you enter a wildcard in the command line, maybe the shell expand the wildcard to the list of corresponding file (do you need quote escape?)

Giuseppe Modugno <giusloq>
Wed 28 Mar 2018 07:55:26 PM UTC, comment #1: 

I like the idea. However, could we use wildcards instead of extensions only? Opengroup seems to have 'fnmatch()' for this, but windows does not seem to support it... Any ideas?

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Mon 19 Mar 2018 01:07:34 PM UTC, original submission:  

Attached is a patch for makefsdata utility that adds two command line options:

  • -x: a comma separated list of extensions to exclude during processing (e.g., -x:json,txt)
  • -xc: a comma separated list of extensions to not compress, if -defl option is used (e.g., -xc:mp3)

I'm using the first option because I have some .json files that is dynamically generated by lwip httpd server. However I have these files static in the www folders to check with "normal" web server (simulating a fixed reply from the server).

I'm using the second option for .mp3 files. I noticed Chrome requests the .mp3 file, but it doesn't like it compressed. So it requests again the file without specifying it accepts compressed content.

Giuseppe Modugno <giusloq>


Attached Files
file #43595:  patch.diff added by giusloq (6KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by giusloq (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-03 goldsimon StatusNone => Done
        Assigned toNone => goldsimon
        Open/ClosedOpen => Closed
    2018-03-19 giusloq Attached File- => Added patch.diff, #43595

    Back to the top

    Powered by Savane 3.5