mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-23 05:08:57 +08:00
Fix recovery middleware to render gitea style page. (#13857)
* Some changes to fix recovery * Move Recovery to middlewares * Remove trace code * Fix lint * add session middleware and remove dependent on macaron for sso * Fix panic 500 page rendering * Fix bugs * Fix fmt * Fix vendor * recover unnecessary change * Fix lint and addd some comments about the copied codes. * Use util.StatDir instead of com.StatDir Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
go.modgo.summodules.txt
modules
auth
context
middlewares
templates
translation
routers
vendor
gitea.com/go-chi/session
.drone.yml.gitignoreLICENSEREADME.md
couchbase
file.gogo.modgo.summemcache
memory.gomysql
postgres
secret.gosession.goutils.gogithub.com
couchbase/gomemcached
go-chi/chi
unrolled/render
9
vendor/github.com/couchbase/gomemcached/mc_constants.go
generated
vendored
9
vendor/github.com/couchbase/gomemcached/mc_constants.go
generated
vendored
@ -104,6 +104,7 @@ const (
|
||||
|
||||
DCP_SYSTEM_EVENT = CommandCode(0x5f) // A system event has occurred
|
||||
DCP_SEQNO_ADV = CommandCode(0x64) // Sent when the vb seqno has advanced due to an unsubscribed event
|
||||
DCP_OSO_SNAPSHOT = CommandCode(0x65) // Marks the begin and end of out-of-sequence-number stream
|
||||
)
|
||||
|
||||
// command codes that are counted toward DCP control buffer
|
||||
@ -117,6 +118,7 @@ var BufferedCommandCodeMap = map[CommandCode]bool{
|
||||
UPR_EXPIRATION: true,
|
||||
DCP_SYSTEM_EVENT: true,
|
||||
DCP_SEQNO_ADV: true,
|
||||
DCP_OSO_SNAPSHOT: true,
|
||||
}
|
||||
|
||||
// Status field for memcached response.
|
||||
@ -156,6 +158,9 @@ const (
|
||||
SUBDOC_PATH_NOT_FOUND = Status(0xc0)
|
||||
SUBDOC_BAD_MULTI = Status(0xcc)
|
||||
SUBDOC_MULTI_PATH_FAILURE_DELETED = Status(0xd3)
|
||||
|
||||
// Not a Memcached status
|
||||
UNKNOWN_STATUS = Status(0xffff)
|
||||
)
|
||||
|
||||
// for log redaction
|
||||
@ -174,6 +179,10 @@ var isFatal = map[Status]bool{
|
||||
EACCESS: true,
|
||||
ENOMEM: true,
|
||||
NOT_SUPPORTED: true,
|
||||
|
||||
// consider statuses coming from outside couchbase (eg OS errors) as fatal for the connection
|
||||
// as there might be unread data left over on the wire
|
||||
UNKNOWN_STATUS: true,
|
||||
}
|
||||
|
||||
// the producer/consumer bit in dcp flags
|
||||
|
Reference in New Issue
Block a user