kolo / xmlrpc

Implementation of XMLRPC protocol in Go language.
MIT License
159 stars 94 forks source link

Guard map with mutex #51

Closed kolo closed 6 years ago

kolo commented 6 years ago

What?

This PR guards responses map in clientCodec with a mutex. It is necessary because map is not safe for concurrent use.

Test_ConcurrentCalls has been added to the test suite. It is meant to be run with -race flag.

This PR extends #42.