Commit Graph

26 Commits

Author SHA1 Message Date
misu 62bb07b760 add: comment 2019-02-03 11:30:02 +09:00
misu b27407e5fd mod: no need to change line feed 2018-04-20 10:07:26 +09:00
misu 811803b3ed add: comment 2018-04-06 13:30:19 +09:00
misu af46d4fe1f mod: modification of review 2018-03-05 17:57:15 +09:00
misu c83088956f upgrade: TestFraming 2018-02-02 12:15:47 +09:00
misu 8e146c3b73 mod: remove unnecessary field 2018-02-01 19:04:12 +09:00
misu e7575e215d upgrade: compressContextTakeover reader 2018-02-01 18:26:02 +09:00
misu f8b4a0f71d mod: flate.writer for context-takeover 2018-02-01 12:59:30 +09:00
misu ee46f8548a add: comment 2018-01-31 20:52:04 +09:00
misu 62df16a55d mod: compressContextTakeover method. 2018-01-31 19:40:12 +09:00
misu fededdd187 mod: detach compressContextTakeover method and add debug comment. 2018-01-31 19:30:05 +09:00
misu 2472e6d800 upgrade: use pool for writerdict 2018-01-30 19:02:50 +09:00
misu a9475f2ccf mod: remove judge dict nil 2018-01-29 18:12:43 +09:00
misu e2dd00db3d mod: dict strategy 2018-01-29 15:10:19 +09:00
misu e873eb1ee0 mod: test and write compression 2018-01-26 17:52:23 +09:00
misu f7abc95255 mod: method args name 2018-01-24 18:01:48 +09:00
misu a366cdf616 impl: compressContextTakeover 2018-01-24 17:53:38 +09:00
misu 36c43970ee impl: decompressContextTakeover 2018-01-24 16:52:47 +09:00
Alexander Emelin eb457539f7 fix flate write pool size to work with best compression 2017-01-25 02:15:04 +03:00
Gary Burd 2257eda00b Fix compile error on Go < 1.6 2017-01-19 11:27:08 -08:00
Gary Burd 522f286a67 Fix to compile on Go < 1.6 2017-01-19 11:23:28 -08:00
Gary Burd b0dc45572b Change default and add API for compression level
Change the default compression level to 1. This level is faster and uses
less memory.

Add Conn.SetCompressionLevel API to allow applications to tune
compression on a per message basis.
2017-01-19 11:00:23 -08:00
Gary Burd 6c51b25bc8 Compression improvements
- Remove unnecessary error return from compressNoContextTakeover.
- Simplify use of sync.Pool.
- Fix formatting in compression documentation.
2016-12-27 17:05:16 -05:00
Cyrus Katrak 2db2f66488 pool flate readers 2016-12-19 07:28:05 -08:00
Cyrus Katrak 3ab3a8b883 pool flate writers 2016-12-16 15:41:18 -08:00
Gary Burd a87eae1d6f Add hooks to support RFC 7692 (per-message compression extension)
Add newCompressionWriter and newDecompressionReader fields to Conn. When
not nil, these functions are used to create a compression/decompression
wrapper around an underlying message writer/reader.

Add code to set and check for RSV1 frame header bit.

Add functions compressNoContextTakeover and decompressNoContextTakeover
for creating no context takeover wrappers around an underlying message
writer/reader.

Work remaining:

- Add fields to Dialer and Upgrader for specifying compression options.
- Add compression negotiation to Dialer and Upgrader.
- Add function to enable/disable write compression:

    // EnableWriteCompression enables and disables write compression of
    // subsequent text and binary messages. This function is a noop if
    // compression was not negotiated with the peer.
    func (c *Conn) EnableWriteCompression(enable bool) {
            c.enableWriteCompression = enable
    }
2016-06-29 17:03:55 -07:00