TwistedStatsDClient.write isn't thread-safe
Bug #838262 reported by
Thomas Herve
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txStatsD |
Fix Released
|
High
|
Ian Wilkinson |
Bug Description
write is meant to be called in threads sometimes, my Metric.send, for example in WSGi application. It should use reactor.
Changed in txstatsd: | |
importance: | Undecided → High |
Changed in txstatsd: | |
assignee: | nobody → Ian Wilkinson (theiw) |
status: | New → In Progress |
To post a comment you must log in.
If you use UdpStatsDClient as the connection:
connection = UdpStatsDClient (host, port)
metrics = Metrics(connection)
then sending will be thread-safe.
ian
On Wednesday, 31 August 2011 at 18:40, Thomas Herve wrote:
> Public bug reported: callFromThread to be /bugs.launchpad .net/bugs/ 838262 ient.write isn't thread-safe callFromThread to /bugs.launchpad .net/txstatsd/ +bug/838262/ +subscriptions
>
> write is meant to be called in threads sometimes, my Metric.send, for
> example in WSGi application. It should use reactor.
> threadsafe/
>
> ** Affects: txstatsd
> Importance: High
> Status: New
>
> ** Changed in: txstatsd
> Importance: Undecided => High
>
> --
> You received this bug notification because you are a member of txStatsD
> Developers, which is the registrant for txStatsD.
> https:/
>
> Title:
> TwistedStatsDCl
>
> Status in txStatsD: A Twisted implementation of StatsD:
> New
>
> Bug description:
> write is meant to be called in threads sometimes, my Metric.send, for
> example in WSGi application. It should use reactor.
> be threadsafe/
>
> To manage notifications about this bug go to:
> https:/