Eric Frias
8eb2ccc180
Merge commit '1f41494'
2017-06-21 09:11:02 -04:00
Eric Frias
772c2b2822
Merge commit 'e323862'
2017-06-20 19:06:22 -04:00
Eric Frias
2c8cdf84b7
Merge commit '622ff58'
2017-06-20 17:27:58 -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
Eric Frias
1e6176911a
Fix bugs in http request when using chunked content encoding.
...
Add missing support for parsing/reconstructing URLs with query strings
to fc::url.
Add md5 hash algorithm.
2015-07-10 10:07:14 -04:00
Eric Frias
3dd848d7eb
Fix HTTP request to work with servers that don't specify a
...
content-length header (either chunked encoding or http 1.0-style.
Allow sending a different content-type in request header other
than app/json.
2015-06-29 11:34:27 -04: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
Vikram Rajkumar
874f103b8d
Fix overloaded virtual function warnings
2014-12-23 15:45:57 -05:00
Eric Frias
3ee5f756fb
Fix a yield-during-catch bug in udp_socket, and add a shared_ptr version of udp_socket::send_to() which will avoid reading from uninitialized memory in the face of cancellation.
2014-09-12 19:42:25 -04:00
Eric Frias
751777e754
Fix more locations where we were making boost::asio calls with buffers declared on the stack which could cause problems when the calling tasks were canceled.
2014-09-11 16:30:03 -04:00
Eric Frias
aa6882b3b7
Allow us to safely cancel tasks that are executing asynchronous network reads
...
and writes. This was previously unsafe because we almost always passed read/write
buffers to boost that were on the stack. Canceling the task deleted the stack and
therefore the buffer, but couldn't reliably prevent boost from writing to the buffer
if data came in after the cancel. This commit adds variants of the read and write
functions that take a shared_ptr<char> instead of a raw char* as the buffer, and
these variants will ensure the shared_ptr will outlive the boost::asio read/write.
2014-09-09 11:10:37 -04:00
Eric Frias
578527626c
Support GNTP password authentication
2014-08-21 19:32:56 -04:00
Eric Frias
156a7cc4b4
Allow setting hostname
2014-08-21 16:14:08 -04:00
Eric Frias
362884fc52
Import GNTP notification code
2014-08-21 15:21:48 -04:00
Gandalf-the-Grey
2d51fd7321
Fix compile fc on Win64 tcp_socket needs a bit (two dozens of) more space.
2014-07-22 10:04:55 -04:00
Eric Frias
0a1011ddc9
Fix win32 compile (increase size of tcp_socket)
2014-07-21 10:40:21 -04:00
Daniel Larimer
5529b300d9
implemented working UDT socket/server
2014-06-26 11:25:07 -04:00
Daniel Larimer
5c98d7864f
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc
2014-06-26 08:48:12 -04:00
Daniel Larimer
d20b9d049b
start work on udt socket class for fc
2014-06-25 18:34:04 -04:00
Eric Frias
2c5c1655a6
Add counters to the TCP rate limiter to measure actual upload and download speed, and allow the caller to set how bursty they want the connection to be.
2014-06-25 18:16:58 -04:00
Eric Frias
a0a33a9e95
Add missing include
2014-06-16 08:46:14 -07:00
Daniel Larimer
b7ad720647
updating ntp service
2014-06-16 11:17:29 -04:00
Daniel Larimer
0c64d208d9
adding ntp support to fc
2014-06-11 15:17:28 -04:00
Eric Frias
2690a52fe5
Add a function to return the local endpoint of a http server
2014-06-03 19:00:22 -04:00
Daniel Larimer
285913bce0
some compilers need more space
2014-06-02 21:05:04 -04:00
Eric Frias
9fa6e8a430
Separate the 'bind' operation for tcp_sockets from the 'connect_to' operation so we can tell which operation is throwing an exception in client code. convert a few boost exceptions into fc::exceptions.
2014-06-01 18:08:10 -04:00
Eric Frias
b9050b589d
Merge branch 'phoenix' into tcp_rate_limiting
2014-05-23 18:04:05 -04:00
Eric Frias
2837892ec0
Upgrade to new version of city_hash library. This version has performance improvements, plus implements a variant with 32-bit output which will quiet some compiler warnings on win32.
2014-05-14 17:11:36 -04:00
Eric Frias
bc4361bf64
Merge branch 'phoenix' into tcp_rate_limiting
...
Conflicts:
include/fc/network/tcp_socket.hpp
src/network/tcp_socket.cpp
2014-05-08 09:04:45 -04:00
Eric Frias
aa111510f3
Expose enough functions in tcp_socket and tcp_server to allow listening and originating connections on the same port. So far, this seems to work on win32, other platforms untested.
...
Add a local_endpoint() function so we can find out which local interface a socket is bound to
2014-05-01 14:02:49 -04:00
Daniel Larimer
61f2ac4679
adding HTTP response code
2014-04-22 17:25:07 -04:00
Daniel Larimer
e36ccb3cfd
adding NotAuthorized HTTP response code
2014-04-22 10:22:17 -04:00
Eric Frias
06df18c690
More work towards rate-limited TCP sockets
2014-04-17 19:39:15 -04:00
Eric Frias
ce7139c073
Start of work towards throttling TCP connections
2014-04-17 12:00:52 -04:00