Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fluent-plugin-wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
fluent-plugin-wendelin
Commits
a1174f91
Commit
a1174f91
authored
Oct 16, 2017
by
Julien Muchembled
Committed by
Julien Muchembled
Oct 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix severe performance issue by POSTing data as application/octet-stream
This depends on
wendelin!28
. /reviewed-on
!1
parent
4a4a6795
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/fluent/plugin/wendelin_client.rb
lib/fluent/plugin/wendelin_client.rb
+5
-5
No files found.
lib/fluent/plugin/wendelin_client.rb
View file @
a1174f91
...
...
@@ -41,11 +41,11 @@ class WendelinClient
req
.
basic_auth
@credentials
[
'user'
],
@credentials
[
'password'
]
end
#
TODO ensure content-type is 'raw', e.g. this way
#
(but then querystring ?reference=... is lost)
#
req.body = data_chunk
# req.content_type = 'application/octet-stream'
req
.
set_form_data
(
'data_chunk'
=>
data_chunk
)
#
When using 'application/x-www-form-urlencoded', Ruby encodes with regex
#
and it is far too slow. Such POST is legit:
#
https://stackoverflow.com/a/14710450
req
.
body
=
data_chunk
req
.
content_type
=
'application/octet-stream'
@log
.
on_trace
do
@log
.
trace
'>>> REQUEST'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment