• Sebastian Schmittner's avatar
    Add fix and tests for FastCGI persistent connections (#1134) · 8cb4e908
    Sebastian Schmittner authored
    * keep fastcgi connection open
    
    * poor mans serialisation to make up for the lack of demuxing
    
    * pointing includes to echse's repo
    
    * Revert "pointing includes to echse's repo"
    
    This reverts commit 281daad8d437ba88fadd65fae5af2da99d449bea.
    
    * switch for persistent fcgi connections on/off added
    
    * fixing ineffectual assignments
    
    * camel case instead of _
    
    * only activate persistent sockets on windows (and some naming conventions/cleanup)
    
    * gitfm import sorting
    
    * Revert "fixing ineffectual assignments"
    
    This reverts commit 79760344e7b1231e59a2867246e7689b05e92e18.
    
    # Conflicts:
    #	caddyhttp/staticfiles/fileserver.go
    
    * added another mutex and deleting map entries. thx to mholts QA comments!
    
    * thinking about it, this RW lock was not a good idea here
    
    * thread safety
    
    * I keep learning about mutexs in go
    
    * some cosmetics
    
    * adding persistant fastcgi connections switch to directive
    
    * Support for configurable connection pool.
    
    * ensure positive integer pool size config
    
    * abisofts pool fix + nicer logging for the fastcgi_test
    
    * abisoft wants to have dialer comparison in _test instead of next to struct
    
    * Do not put dead connections back into pool
    
    * Fix fastcgi header error
    
    * Do not put dead connections back into pool
    
    * some code style improvements from the discussion in https://github.com/mholt/caddy/pull/1134
    
    * abisofts naming convention
    8cb4e908
fastcgi_test.go 8.51 KB