Commit graph

97 commits

Author SHA1 Message Date
Nathaniel
23fd3a3a41
Adjust tcp_socket allocation 2022-03-16 13:17:32 -05:00
Nathan Hourt
0248e20531
Add option to compile dynamic libraries
Also, fix build:
Clang 10.0.1 has incompatible rules with other compilers on whether
you must/cannot put the `template` keyword in part of the reflection
code. Add a special case to make it work all around.
2021-03-13 09:14:01 -06:00
Nathan Hourt
5b3eb3a355
websocket_server default empty XFF header
For some reason, the websocket_server types have been altered to require
an X-Forwarded-For header (???) which seems utterly unnecessary. AFAICT,
it's safe to just leave it empty (BitShares does), so add a default arg
to make it do so by default.
2020-08-21 11:47:14 -05:00
abitmore
0d9b127e34 Add missing functions to websocket_tls_server
These functions were in websocket_server class but not in websocket_tls_server class:
- get_listening_port
- stop_listening
- close
2020-06-20 13:01:22 -04:00
abitmore
bee73bd491 Refactor websocket_client, fix duplicate code
Fix duplicate code issue in websocket_client::connect() and
websocket_client::secure_connect(), and other minor issues
2020-05-02 11:21:50 -04:00
abitmore
aa54e3938c Remove unused websocket_tls_client class
The funcionality is already covered by the websocket_client class
2020-05-02 06:34:18 -04:00
abitmore
c6df78b0bb Rename a function to avoid accidental misuse 2020-05-01 20:51:47 -04:00
abitmore
8ddcc87ee1 Add todo 2020-05-01 19:43:29 -04:00
abitmore
8ffe08f891 Merge 'master' branch 2020-05-01 18:01:55 -04:00
abitmore
ba394e05b3 Refactor code about logging remote host info 2020-05-01 17:35:52 -04:00
Peter Conrad
2b3611fa95 Delete copy constructor + copy assignment in tcp_socket 2019-09-16 14:44:55 +02:00
Peter Conrad
7b37cd6eff Fix core #1935 2019-08-19 12:09:53 +02:00
John Jones
8426b45d6c Increase size for Boost 1.70 2019-08-13 13:11:36 -05:00
Peter Conrad
6008c96c1a Allow more space for windows sockets due to fc::future changes 2019-07-26 15:02:17 +02:00
Alfredo Garcia
550e092267
Merge branch 'master' into jmj_844b 2019-06-21 14:53:36 -03:00
Peter Conrad
7649f1f47d Removed broken http_server + unused http_api 2019-06-06 14:54:48 +02:00
Peter Conrad
58e16e543d Replaced most fc::shared_ptr with std::shared_ptr 2019-05-29 11:28:40 +02:00
Peter Conrad
9069e05cb0 Get rid of some inlines 2019-05-28 17:20:57 +02:00
jmjatlanta
94200c1b57 clarify method name, cache value 2019-05-27 10:25:19 -05:00
John Jones
0df5f7e905 Use an api call instead of constructor 2019-05-24 11:15:02 -05:00
Peter Conrad
aa8870e793 Fixed JSONRPC error handling 2019-05-24 18:11:19 +02:00
John Jones
4906d8b2da Allow configurable proxy header for logging 2019-05-24 10:41:21 -05:00
John Jones
d821e865ed Add configurable header 2019-05-24 08:53:45 -05:00
John Jones
8b4ef5aa02 Fix bad_alloc 2019-05-23 16:05:05 -05:00
John Jones
82935acd86 Add host information to log messages 2019-05-23 09:56:11 -05:00
Nathan Hourt
0a50ac23e0 Remove websocket_server::synchronous_close
It doesn't work as expected, so get rid of it.
2019-05-13 17:25:08 -05:00
Nathan Hourt
bb01f3e925 Use random port for API tests
Add missing functionality to websocket_client and websocket_server to
make API tests more reliable and to make it possible to use a random
port for the tests.
2019-05-13 17:25:08 -05:00
Peter Conrad
4511300081 Minor fixes for Windows 2019-04-09 08:46:56 +02:00
Peter Conrad
579914c84d Removed unused stuff 2019-04-04 17:59:51 +02:00
Peter Conrad
a91822616e Added max_depth to remaining variant conversions 2018-03-18 10:49:44 +01:00
abitmore
43ac0b0520 Slightly improve performance for pack/unpack 2018-03-13 13:06:00 -04:00
abitmore
86e18663a0 Add max_depth parameter to pack/unpack functions 2018-03-11 17:31:55 -04:00
Vikram Rajkumar
0d0b485f3a Remove GNTP (unrelated to NTP) 2017-03-16 12:33:30 -05:00
Vikram Rajkumar
fe82998021 Remove NTP 2017-03-16 12:29:57 -05:00
elmato
aed35f5b06 Add access to HTTP request headers in websocket_connection 2017-01-16 19:55:17 +00:00
Daniel Larimer
b07f429556 remove udt and make websocketpp includes public 2017-01-03 15:13:22 -05:00
theoreticalbts
44ede99409 websocket.cpp: Allow specifying CA root in websocket_client constructor 2016-05-18 21:14:25 -04:00
theoreticalbts
1f02c6790f Revert "Add an option to the websocket server constructor to allow disabling deflate"
This reverts commit 21045dde5f.
2016-04-19 22:58:37 -04:00
theoreticalbts
7906a58468 Revert "Make websocket permessage-deflate default to disabled since it causes problems with Chrome"
This reverts commit 622ff58039.
2016-04-19 22:58:30 -04:00
Daniel Larimer
09975ce12b adding IP address to http request handler 2016-04-08 14:18:42 -04:00
Eric Frias
622ff58039 Make websocket permessage-deflate default to disabled since it causes problems with Chrome 2016-03-14 18:26:29 -04:00
Eric Frias
21045dde5f Add an option to the websocket server constructor to allow disabling deflate
compression.  Refactored the code to remove duplication between tls/non-tls
versions of the server, which appear to have been cut & paste copies of
one another that had diverged slightly.  This makes some of the fixes to
the non-tls server available in the tls server.
cryptonomex/graphene#619
2016-03-10 17:22:28 -05:00
Nathan Hourt
d0b4b64923 Remove log spam 2015-05-27 16:15:49 -04:00
Daniel Larimer
9ef91e2245 partial fixes to crashing on websocket client close 2015-05-12 17:15:00 -04:00
Daniel Larimer
c28ed38f1a adding support for secure websocket client 2015-05-12 16:16:10 -04:00
Daniel Larimer
fb62b6421c adding ssl support to websocket 2015-05-12 14:50:08 -04:00
Daniel Larimer
c8200afade better close notification and error handling 2015-04-01 10:25:57 -04:00
Daniel Larimer
e506e4f4be added listen on a specific endpoint/port pair 2015-03-30 16:56:28 -04:00
Daniel Larimer
74b707999c fix bugs with websocket and integrate API support 2015-03-27 16:29:33 -04:00
Daniel Larimer
4ce26f068f implement simple websocket wrapper ontop of websocketpp 2015-03-26 16:51:10 -04:00