kim (grufwub)
c9134e3792
update deadlines
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 17:30:59 +01:00
kim (grufwub)
0f9420e7f6
fix build script overwriting build log for each file build
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 17:00:02 +01:00
kim (grufwub)
d1732b30d8
version bump
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 10:10:56 +01:00
kim (grufwub)
5d4f90e6e8
update README with new flags
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 10:08:57 +01:00
kim (grufwub)
f8357bfcf6
update flag setting
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 10:08:40 +01:00
kim (grufwub)
340f746930
add support for CGI HTTP status checking, also disabling CGI HTTP compat
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-09 17:49:31 +01:00
kim (grufwub)
38e9bd4a6d
rename stripwriter to HttpStripWriter, improve it, handle http status codes
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-09 16:33:38 +01:00
kim (grufwub)
665d6dad35
update usage flags
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-08 17:53:10 +01:00
kim (grufwub)
ab82b53b2a
fix critical bug with broken directory listing selectors
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-08 17:39:31 +01:00
kim (grufwub)
43ddf00b36
massively improve code commenting, fix SkipPrefixWriter bug
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-08 16:52:17 +01:00
Kim
45e77db911
Merge pull request #15 from EaterLabs/feature/fixedmap/make-it-lru
...
[fixedmap] make fixedmap a LRU cache
2020-05-08 09:49:57 +01:00
eater
ae00a36d83
[fixedmap] make fixedmap a LRU cache
...
Signed-off-by: eater <=@eater.me>
2020-05-08 10:02:19 +02:00
kim (grufwub)
61554f10b4
move CgiEnabled checks all to execute(), makes ensuring CGI disabled MUCH easier
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 21:48:16 +01:00
kim (grufwub)
0c4c48d9d3
fix up file-remap help print
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 21:19:34 +01:00
kim (grufwub)
4bf0e88ac6
finish up changes to virtual file remapping implementation
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 21:15:47 +01:00
kim (grufwub)
0b8c3b41ba
add virtual filesystem support (remapping file paths)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 20:52:25 +01:00
kim (grufwub)
32e8a47073
update to generate same header text for both policy files
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 19:17:35 +01:00
kim (grufwub)
9e91ad37f1
remove debug prints, fix GophermapCommandSection not breaking out early as it should
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 19:16:21 +01:00
kim (grufwub)
6576d436f7
move constants to config (user modifiable), support CGI header stripping
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 17:08:06 +01:00
kim (grufwub)
026a89c759
stop even subgophermaps from being cached within gophermap, same reasoning as regular files
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 09:16:37 +01:00
kim (grufwub)
c7ae3fd151
more big changes
...
- Current Request structure renamed to Responder
- Request's RequestPath and Parameters separated into
new Request structure
- Responder sent on calls to render to filecontents,
but creation / caching of filecontents stores onto a
a copy of Request instead (as we don't need the extra host
or client info held by Responder)
- Cached gophermaps now do not cache regular files within them
if inserted, as these files could be over the cache file size
limit
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 08:59:53 +01:00
kim (grufwub)
10c9f02eb3
rename connwrapper and gophorconn to make more sense
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 21:08:04 +01:00
kim (grufwub)
a6a779aaf0
turn gophorconn --> connwrapper, gophorconn now wraps net.conn with deadline setting
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 20:53:07 +01:00
kim (grufwub)
e27f7aea81
modify error sending to use WriteFlush to ensure writer flushed
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 18:47:32 +01:00
kim (grufwub)
9ea253d9bb
switch underlying request writer to use a buffered writer
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 18:21:21 +01:00
kim (grufwub)
d87774a70d
rearrange flag parsing (to match README) + add charset ready
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 18:21:00 +01:00
kim (grufwub)
201531dfcb
Merge branch 'development' of github.com:grufwub/gophor into development
2020-05-06 13:35:17 +01:00
kim (grufwub)
e527e42f63
rename buildError function
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 13:35:06 +01:00
Kim
7e46973475
Merge pull request #14 from YtvwlD/missing-tabs
...
Re-add missing tabs in gophermaps
2020-05-06 13:28:56 +01:00
kim (grufwub)
9440866bed
update compliance and references sections
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 12:44:40 +01:00
Niklas Sombert
07e72f89bf
Re-add missing tabs in gophermaps
...
8dae2ab
splits them at tabs but fails to re-add them when joining afterwards.
2020-05-06 13:44:29 +02:00
kim (grufwub)
57563d0a0e
update README usage and compliance text
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 12:11:42 +01:00
kim (grufwub)
5008294b28
update README.md usage section
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 12:02:49 +01:00
kim (grufwub)
8e3272270d
improve README.md (ignore mention of this in last commit)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 11:39:24 +01:00
kim (grufwub)
8dae2abb6f
move struct member usage to instead be struct methods, improve README.md
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 11:38:53 +01:00
kim (grufwub)
0042ba10c4
remove broken gophor-run script for now
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 23:56:05 +01:00
kim (grufwub)
d78499da66
example script to allow running gophor and grabbing config from file
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 23:49:51 +01:00
kim (grufwub)
3a41efcc5b
huge changes
...
- massively improve request handling -- passes request object between
functions now to encapsulate all the data needed
- writing is now handled by the passed request object with attached
writer
- files > max cached file size and fed directly to socket now instead
of read into buffer first (which would have caused MAJOR memory issues)
- CGI support further fleshed out, and timer started for child processes
that attempts to kill them if they don't clean up in time
- probably many more fixes i'm forgetting
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 23:46:50 +01:00
kim (grufwub)
4ea4280cd0
add support for disabling CGI support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 09:35:29 +01:00
kim (grufwub)
9f32233d28
update build scripts to look for version string in right location
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:34:09 +01:00
kim (grufwub)
c68056e341
update exec.go to show our ANGERY stance on $PATH_INFO
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:31:24 +01:00
kim (grufwub)
9415d4dec2
update README.md todos
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:01:36 +01:00
kim (grufwub)
82da35afbc
remove filesystem_request.go (moved to request.go)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:01:17 +01:00
kim (grufwub)
6ac26c2225
further fixes to CGI 1.1 implementation
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:00:53 +01:00
kim (grufwub)
810d57ad66
fix request string parsing to skip initial '?' in request
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 18:24:13 +01:00
kim (grufwub)
6cd6adecca
move requestpath contents into filesystemrequest, which is passed everywhere instead of individual variables
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 18:19:56 +01:00
kim (grufwub)
14f181372d
add CGI environment variables (unset) according to CGI spec
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 23:49:19 +01:00
kim (grufwub)
c2bc70d5f5
update README.md to be more open about current state of CGI-bin support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 23:08:55 +01:00
kim (grufwub)
eaf0a22717
update features in README.md
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 23:04:59 +01:00
Kim
a8c11e57c5
Update README.md
2020-05-03 22:49:38 +01:00