Closed hjr3 closed 7 years ago
Making progress on this, just a bit more code to write.
great news!
i am now streaming a 1.4mb response from the backend. i have to clean up some stuff before this is ready for merge. all this work because i thought ByteBuf
was acting like a ring buffer. it is not!
I quick check your changes:
wget http://localhost:9001/assets/javascripts/jquery-1.7.1.min.js
--2016-12-05 10:08:35-- http://localhost:9001/assets/javascripts/jquery-1.7.1.min.js
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:9001... failed: Connection refused.
Connecting to localhost|127.0.0.1|:9001... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
--2016-12-05 10:08:36-- (try: 2) http://localhost:9001/assets/javascripts/jquery-1.7.1.min.js
Connecting to localhost|127.0.0.1|:9001... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
--2016-12-05 10:08:38-- (try: 3) http://localhost:9001/assets/javascripts/jquery-1.7.1.min.js
Connecting to localhost|127.0.0.1|:9001... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
--2016-12-05 10:08:41-- (try: 4) http://localhost:9001/assets/javascripts/jquery-1.7.1.min.js
Connecting to localhost|127.0.0.1|:9001... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
Are you aware of that? Should I dig further?
@yanns not that issue specifically, but i have seen some other problems. down the rabbit hole i continue to go.
Closing in favor of https://github.com/hjr3/alacrity/pull/38
@yanns here is where i am at with the streaming body. i am working through trying to figure out how tokio proto wants us to handle this. Currently stuck: