jareware / JSON-DTO

A simple JSON-DTO-binding module for the Play! Framework
MIT License
5 stars 2 forks source link

POST parameter binging potentially thread-unsafe? #2

Open toukovk opened 11 years ago

toukovk commented 11 years ago

JSONDTOPlugin.body field contains the request body to be parsed.

If I have understood right, JSONDTOPlugin instance is shared between different threads.

It it is so, this is potentially thread-unsafe and body should probably be stored with a ThreadLocal?

jareware commented 11 years ago

Oh, seems I already answered on #1.