Commit Graph

128 Commits

Author SHA1 Message Date
tidwall f50c3d4246 Added RESP type 2020-01-27 12:40:43 -07:00
tidwall fc7a9e8758 Added AcceptError function 2020-01-20 08:50:30 -07:00
tidwall a56a5c7c95 Do not fail on accept 2020-01-20 07:17:34 -07:00
tidwall 565ec452b4 Added bulk number appending 2020-01-09 05:08:23 -07:00
tidwall 47f86dd29a Added WriteUint64 method 2019-12-18 19:45:32 -07:00
Josh Baker 56fff5d1ec
Merge pull request #26 from oleh-ozimok/mux
add server mux
2019-12-18 19:41:33 -07:00
Josh Baker 5d58ef2214
Update README.md 2019-05-06 09:04:21 -07:00
Oleg Ozimok a6727f990d add server mux 2019-04-07 21:03:47 +03:00
Josh Baker c964c660ad
Merge pull request #23 from smallnest/master
#22 export Serve method
2019-03-20 21:35:34 -07:00
smallnest 0b1eb3f07a #22 export Serve method 2019-03-19 17:29:55 +08:00
Josh Baker 56b016127a Merge branch 'iwanbk-listen-address' 2018-02-28 08:23:42 -07:00
Iwan Budi Kusnanto 75d62f9c0b Add server.Addr() : returns server's listen address.
Useful to get actual listen address when we listen to random
port (localhost:0).

Also move the `s.ln=ln` assignment from `serve` to
`ListenServeAndSignal` to avoid race condition.
2018-02-28 22:01:57 +07:00
Josh Baker b6e65d498d lil perf boost 2017-11-09 05:50:32 -07:00
Josh Baker 3df12143a4 Merge pull request #12 from chrisvdg/gracefull-shutdown
adds NewServerTLS
2017-10-03 07:17:44 -07:00
Chris Van de Gejuchte d2f164462f adds NewServerTLS 2017-10-02 11:08:29 +02:00
Josh Baker f2794a0a30 tls example 2017-09-22 11:54:30 -07:00
Josh Baker 4f3c759c8f Merge branch 'chrisvdg-adds-tls' 2017-09-22 11:37:34 -07:00
Chris Van de Gejuchte 61c5beb419 Adds tls support 2017-09-21 12:15:47 +02:00
Josh Baker e095da84ca refactor return value 2017-07-03 05:45:30 -07:00
Josh Baker 52545603e4 added test to nextcommand reader 2017-07-03 05:29:46 -07:00
Josh Baker d8057d9c4c added byte appending code 2017-06-25 21:53:51 -07:00
Josh Baker 2f1d649edb removed unneeded comparison 2017-06-16 09:38:45 -07:00
Josh Baker b67f37f0b1 flush before close 2017-04-22 04:17:26 -07:00
Josh Baker 0be017aab7 remove byte conversion 2017-04-21 19:48:22 -07:00
Josh Baker 5cce96d461 append ints 2017-04-21 19:41:41 -07:00
Josh Baker 8b15dea700 exposed base net.Conn to interface 2017-02-09 10:32:15 -07:00
Josh Baker 6f1afba017 fix memory leak 2017-02-02 09:25:40 -07:00
Josh Baker 582fbf0957 Merge pull request #7 from xmikus01/patch-1
fix typo in README.md
2016-10-23 11:35:28 -07:00
Petr Mikusek 2a12821f21 fix typo in README.md 2016-10-22 12:17:07 +02:00
Josh Baker 0dba69d996 unix socket tests 2016-10-18 15:27:49 -07:00
Josh Baker 89a9dbebb2 support for unix domain sockets, fixes #6 2016-10-18 15:17:35 -07:00
Josh Baker bd8eb49594 allow apos wrapped vals for telnet, fixes #5 2016-10-14 09:00:32 -07:00
Josh Baker 3ca743f4c9 get base buffer 2016-10-08 10:53:01 -07:00
Josh Baker 3696c16b1d write int64s 2016-10-01 06:49:16 -07:00
Josh Baker c7babac35e typo 2016-09-26 15:56:25 -07:00
Josh Baker 012cb08670 peekpipeline 2016-09-26 15:51:47 -07:00
Josh Baker ffebbd588e read pipeline 2016-09-22 14:32:11 -07:00
Josh Baker 4380ff9799 write raw data 2016-09-22 13:11:27 -07:00
Josh Baker 67c21aa488 Major API update. Please see details.
The Redcon API has been changed to better reflect the wants of the
community. THIS IS A BREAKING COMMIT... sorry, it's a one time thing.

The changes include:

1. All commands and responses use []byte rather than string for data.
2. The handler signature has been changed from:
   func(conn redcon.Conn, args [][]string)
   to:
   func(conn redcon.Conn, cmd redcon.Command)
3. There's a new Reader and Writer types for reading commands and
   writing responses.

Performance remains the same.
2016-09-17 20:17:23 -07:00
Josh Baker 08e1ceff58 added Hijack func for detached connections 2016-09-13 11:32:47 -07:00
Josh Baker 8d2bcf15cc do not lcase command 2016-09-09 21:43:07 -07:00
Josh Baker 0ec132aed9 copy fix 2016-09-08 17:46:16 -07:00
Josh Baker 88057ab8af remove bytes example 2016-09-07 08:27:28 -07:00
Josh Baker e1ee7d9f1e default mem buffers 2016-09-07 06:19:55 -07:00
Josh Baker 9b05e8accd init wr zero 2016-09-07 06:04:39 -07:00
Josh Baker 639a7aff4b bytes interface 2016-09-07 05:50:27 -07:00
Josh Baker 4276409b25 memory optimizations 2016-09-06 22:56:44 -07:00
Josh Baker 349b9006f1 connection context 2016-08-29 07:01:30 -07:00
Josh Baker eadbf61d4c Merge pull request #2 from thinxer/bulkbytes
add Conn.WriteBulkBytes
2016-08-23 06:51:19 -07:00
Jianfei Wang 0aadbbce23 add Conn.WriteBulkBytes 2016-08-23 20:54:17 +08:00