FAQ
You are correct about the first example. There is a race condition. A mutex
can be used to fix the bug.

You don't need to study the implementation to learn that there'a goroutine
per connection, but you do need to read the documentation very carefully.
The documentation is at http://golang.org/pkg/net/http/#Server.Serve
  and http://golang.org/pkg/net/http/#Serve.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 3, '13 at 2:25a
activeNov 3, '13 at 3:42a
posts3
users2
websitegolang.org

2 users in discussion

Deckarep: 2 posts Islan Dberry: 1 post

People

Translate

site design / logo © 2022 Grokbase