Skip to content

Mixing query and update calls is not thread safe when using a single client instance #31

@msalvadores

Description

@msalvadores

One could run into race condition issues when having one client used by multiple threads to run query and update calls. This is due to the use of instance variables in the make_post_request method:

request['Content-Type'] = 'application/sparql-' + (@op || :query).to_s

https://github.com/ruby-rdf/sparql-client/blob/master/lib/sparql/client.rb#L505

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions