mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:48:49 +02:00
improve reverse proxy and serverhandling
- buffer pool for IO copy - flush response after read, now works with event stream - fixed error handling for server
This commit is contained in:
@@ -41,9 +41,7 @@ func NewCache() Cache {
|
||||
|
||||
// Release clear the contents of the Cached and returns it to the pool.
|
||||
func (c Cache) Release() {
|
||||
for _, k := range cacheKeys {
|
||||
delete(c, k)
|
||||
}
|
||||
clear(c)
|
||||
cachePool.Put(c)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user