Skip to content

Doesn't really work on OSX #5

@tabletcorry

Description

@tabletcorry

There are a few major issues that cause it to break on OSX. I have patches for most of them but the last might be impossible...

  • Uses #!/bin/bash
    • This prevents usage of a newer bash in the PATH, which is needed since you use new bash features.
  • Uses GNU features of sed, readlink, and ... something else (will edit this when I get home)

These are the easy ones to fix, and I will add a patch later today.

The real stinker though is the buffering that occurs within the pipes. In the primary code loop (that actually contains the nc call in server.sh) there are a set of pipes that buffer the data that flow through them. While I assume this is not an issue on linux, it seems that OSX will buffer quite a lot of data in these pipes. I could only get pages to flush when they were quite long. The standard 404 page would not flush until I added several K of text (I did not actually search for the magic number, just poured a bunch of text in).

Intense googling only revealed solutions that worked on Linux. Unless anyone has any ideas, I am not sure if small responses will work on OSX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions