Skip to content

net/http/fcgi: resets connection with GOMAXPROCS > 1 #4183

@gopherbot

Description

@gopherbot

by ledangster:

When runtime.GOMAXPROCS(>1), Go's FCGI results in a "Connection reset"
during the web server. It runs fine with not forcing multi-processor.

Go:    go version go1.0.2
Linux: Linux machine 3.2.0-2-amd64 #1 SMP Sun Mar 4 22:48:17 UTC 2012 x86_64 GNU/Linux

nginx: 1.3.3

Shell-script:

 while [ 1 ]; do
  curl -v -d '{"Id":123456}' http://10.10.10.100/fcgi/test;
  echo; echo;
 done

nginx error log:
2012/10/02 18:34:49 [error] 30107#0: *110295 readv() failed (104: Connection reset by
peer) while reading upstream, client: 10.10.10.100, server: localhost, request:
"POST /fcgi/test HTTP/1.1", upstream: "fastcgi://127.0.0.1:19111",
host: "10.10.10.100"

Attachments:

  1. fcgisrvtest.go (1752 bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions