mirror of https://github.com/gin-gonic/gin.git
15e9387ca0
In the go, the stack burst will occupy 1G memory, the error message is as follows ```runtime: goroutine stack exceeds 1000000000-byte limit``` If it is a user of gin, the structure of the circular reference is defined on the server side, and the server memory may be used up as long as 100 go processes, and even the server may be down. So I suggest that the mapping function should add a limit on the number of calls, and the number of times can be configured. Of course, I tried several other modifications when I solved the stackoverflow problem described in #1978, but it was not compatible with the existing API, so I did not adopt the solution I tried. |
||
---|---|---|
.. | ||
binding.go | ||
binding_body_test.go | ||
binding_test.go | ||
default_validator.go | ||
form.go | ||
form_mapping.go | ||
form_mapping_benchmark_test.go | ||
form_mapping_test.go | ||
header.go | ||
json.go | ||
msgpack.go | ||
multipart_form_mapping.go | ||
multipart_form_mapping_test.go | ||
protobuf.go | ||
query.go | ||
uri.go | ||
validate_test.go | ||
xml.go | ||
yaml.go |