Steffen van Bergerem
e0ab18c0ea
Improve code documentation
2016-07-12 02:08:21 +02:00
Dennis Schubert
7c3f430bcf
Do not reuse cURL sockets
...
This patch sets CURLOPT_FORBID_REUSE, which tells cURL to close all
connections when they are done. By default, connections are held open
for later use unless explicitly closed or expired by a timeout. This can
improve performance if the same instance is used for multiple requests
to a single host.
We never have that: a host receives only one message per queue job, so
keeping the socket opened for 60 seconds (the default timeout) is
totally useless.
In addition, keeping the sockets open can cause problems for larger
instances with fast workers and a lot of jobs. Mainly, diaspora/#6485 is
caused by this very issue, which is resolved by this as well.
2016-07-02 10:38:29 +02:00
Benjamin Neff
d054d42b86
use .to_h instead of Hash[]
2016-06-20 03:59:23 +02:00
Benjamin Neff
206b8d1eb9
use private_class_method with returned symbol of def
2016-06-20 03:35:26 +02:00
Benjamin Neff
38922d5f30
add string representation to entities for better and easier logging
2016-05-15 00:11:04 +02:00
Benjamin Neff
58b22df9c5
convert entity name to needed format for fetching
2016-05-14 17:56:34 +02:00
Benjamin Neff
5f3d25e5c4
fixed typo in logging
2016-05-02 03:58:25 +02:00
Benjamin Neff
0c4307a4de
better logging for receiving
2016-04-03 03:34:53 +02:00
Benjamin Neff
a8af94f192
validates entity on receive if it can be public but is not
2016-04-03 00:01:50 +02:00
Benjamin Neff
c8be9083f0
move sender_valid? logic to Retraction and Relayable
2016-04-02 22:14:38 +02:00
Benjamin Neff
05cd90f073
validate sender for retraction and relayable
2016-04-01 03:51:24 +02:00
Benjamin Neff
20675b941a
create public/private receiver
2016-03-21 01:05:13 +01:00
Benjamin Neff
ca0a853134
return MagicEnvelope after parsing a Slap
2016-03-21 01:05:13 +01:00
Benjamin Neff
e4b5e79842
create MagicEnvelope instance after unenvelop
2016-03-20 21:07:47 +01:00
Benjamin Neff
3811cd0c03
move parse logic to receive methods
2016-03-20 17:39:41 +01:00
Benjamin Neff
3a83dc97ac
use author_id from slap to fetch pubkey in magic-env
2016-03-20 17:16:08 +01:00
Benjamin Neff
bd9cc67f5e
create receiver for new protocol and write tests
2016-03-18 02:54:17 +01:00
Benjamin Neff
176425f881
rename Fetcher to HttpClient
...
don't use the same classname twice
2016-03-15 02:17:04 +01:00
Benjamin Neff
d83b6f14f5
create entity fetcher for public entities
2016-03-15 02:17:04 +01:00
Benjamin Neff
566ac9ff2d
rename SlapReceiver and mark them deprecated
2016-02-14 01:36:18 +01:00
Benjamin Neff
b19e1b8e52
move signing logic for relayables to Relayable
...
refactoring exceptions for relayables
2016-01-31 20:22:51 +01:00
Benjamin Neff
f4f25e8663
add status to the update_pod callback
2016-01-30 18:28:37 +01:00
Benjamin Neff
fd1dd7988d
improve documentation
2016-01-18 00:17:51 +01:00
Benjamin Neff
2d4f9a60d5
use obj_str for logging
2016-01-17 04:27:14 +01:00
Benjamin Neff
d852144f3c
add send functionality
2016-01-12 02:36:32 +01:00
Benjamin Neff
aa84c4c40e
move Receiver to Federation module
2016-01-11 02:30:32 +01:00