bump h2 dependency and use latest API

This commit is contained in:
Thomas Kriechbaumer 2016-01-26 19:38:17 +01:00
parent 276817e40e
commit cd2b4ea058
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class Http2Layer(Layer):
raise HttpException("HTTP body too large. Limit is {}.".format(self.config.body_size_limit)) raise HttpException("HTTP body too large. Limit is {}.".format(self.config.body_size_limit))
self.streams[eid].data_queue.put(event.data) self.streams[eid].data_queue.put(event.data)
self.streams[eid].queued_data_length += len(event.data) self.streams[eid].queued_data_length += len(event.data)
source_conn.h2.safe_increment_flow_control(event.stream_id, len(event.data)) source_conn.h2.safe_increment_flow_control(event.stream_id, event.flow_controlled_length)
elif isinstance(event, StreamEnded): elif isinstance(event, StreamEnded):
self.streams[eid].timestamp_end = time.time() self.streams[eid].timestamp_end = time.time()
self.streams[eid].data_finished.set() self.streams[eid].data_finished.set()

View File

@ -17,7 +17,7 @@ with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
# This will break `pip install` on systems with old setuptools versions. # This will break `pip install` on systems with old setuptools versions.
deps = { deps = {
"netlib>=%s, <%s" % (version.MINORVERSION, version.NEXT_MINORVERSION), "netlib>=%s, <%s" % (version.MINORVERSION, version.NEXT_MINORVERSION),
"h2>=2.0.0", "h2>=2.1.0, <3.0",
"tornado>=4.3.0, <4.4", "tornado>=4.3.0, <4.4",
"configargparse>=0.10.0, <0.11", "configargparse>=0.10.0, <0.11",
"pyperclip>=1.5.22, <1.6", "pyperclip>=1.5.22, <1.6",