JHue

Results 4 issues of JHue

When used with sharequeue, the nodes of LinkBuffer are set to nil after Append, which prevents reuse and causes GC pressure.

只能显示主页,其他页面均404,而且在主页上传图片时显示服务端异常

这两个方法在lock不成功时也会返回ErrConnClosed,可能是由使用者不小心并发调用导致的,但连接并没有closed,这对debug会有一定的误导性 ``` go func (c *connection) Flush() error { if !c.IsActive() || !c.lock(flushing) { return Exception(ErrConnClosed, "when flush") } defer c.unlock(flushing) c.outputBuffer.Flush() return c.flush() } func (c *connection) Write(p []byte)...

good first issue
fix

有的时候希望在取得Value的时候,在锁持有期间内对Value进行一些判断操作然后再更新值。 现阶段只能通过Upsert()方法来实现,但是如果不进行更新时,就需要upsert相同的元素,但其实是没有必要的。