Closed wavded closed 6 years ago
I do use negroni but I think the issue would occur regardless as it eventually hits net/http
where it panics.
this was fixed already https://github.com/igm/sockjs-go/commit/23545cb0a62767510433d8acb0d4a6ed1d3670dd are you sure you are using latest master? as per you stack trace line 57 is reported, but in httpreceiver.go it is currently a bracket: https://github.com/igm/sockjs-go/blob/master/sockjs/httpreceiver.go#L57
hmm i'll double check, thx for your quick response
writing again regarding the line number, line 46 is the important one (not 57). But as this commit shows https://github.com/igm/sockjs-go/commit/23545cb0a62767510433d8acb0d4a6ed1d3670dd there was indeed a problem on line 46 before the fix.
@igm thanks for the response, I pulled latest master, and I do see the change. I will run that fix and see if things clear up. Thanks.
@wavded @igm I think the real, indirect problem is old git tag - latest tag https://github.com/igm/sockjs-go/tree/v2.0.0 heads at really old commit. When you use go dep tool to vendor sockjs-go it fetches that tag by default and not the master.
the same fix is also applied to v2 branch and v2.0.0 tag https://github.com/igm/sockjs-go/blob/v2.0.0/sockjs/httpreceiver.go#L44
But regarding versioning as you brought this topic up, would it make sense to start tagging master branch with v3.y.z starting with v3.0.0? Any feedback is appreciated please, I'm not sure about all the consequences with all the tools: godep, dep, glide, govendor, etc...
Running against latest master and on
go version go1.9.2 linux/amd64
, I get the following panic. I don't know what causes it yet, perhaps xhr? Any help would be really appreciated as it only seems to show up in production :(