All Questions
286
questions
0
votes
0
answers
217
views
How to stream large file with Spring RestClient (with custom buffer size)
Recently the SpringFramework introduced a RestClient as a replacement for the RestTemplate.
Currently I am stuck at streaming large files to a server, because I cannot control that data should only ...
0
votes
0
answers
192
views
FastAPI finish streaming function in StreamingResponse even if client closed the connection
I think the title is pretty self explanatory.
FastAPI automatically closes the connection and cancels an operation if the client disconnects.
Is there an easy way (not a celery-redis type solution) to ...
0
votes
1
answer
59
views
PHP: How to get the Content-Length from stream request for chunk download
I'm attempting to download archives from an external site in chunks. However, I'm encountering an issue where the Content-Length header, which I'm trying to retrieve using get_headers(), is not ...
1
vote
0
answers
38
views
How NodeJS reads the data from the Kernel buffer (TCP buffer/memory)?
I know that when TCP connection is made and the receiver receive a package it does two things:
to acknowledge the sender that the package is received so the sender could free its memory from the ...
0
votes
0
answers
157
views
Error during streaming: HttpException: Connection closed while receiving data. in Flutter
I've already checked online but i didn't found the solution.
I Have a node js server that performe a query on a SQL DB Streaming the response.
I Have a flutter app that try to read that stream but ...
0
votes
0
answers
41
views
How to send multiple large files as streams to server from Node.js?
Is there a way to use something like this in Node.js with basic APIs?
const fileStream1 = fs.readFileSync('tmp/large.2gb.file.gz')
const fileStream2 = fs.readFileSync("tmp/large.10gb.file.gz"...
1
vote
0
answers
121
views
Receiving URL request with incomplete data error
I am making a simple ChatGPT app in Swift that requests data from the API in a stream. The API returns the correct data but when I receive it, words and characters are missing. I tried debugging but I'...
-1
votes
1
answer
135
views
Handling streamed HTTP ressponses
I have the following example that connects to an HTTP service which streams responses back in a stream of chunks to create a JSON structure. For each chunk my code appends a byte rb array with the ...
2
votes
0
answers
88
views
Do streaming http responses need to ping the browser to prevent the connection from being closed?
I am implementing an API over HTTP that provides a slow streaming responses that may have lengthy gaps between chunks being sent. I'm trying to figure out if I should implement ping responses to ...
1
vote
1
answer
504
views
How to set the read channel buffer size when using readUTF8Line in Ktor
I am using Ktor 2.3.2 in JVM and I am receiving a HTTP response as a stream from a server which contains lines (separated by LF).
I already have following code:
httpClient.preparePost("/some/api/...
4
votes
1
answer
958
views
How to close an HTTP request in Node.js and prevent further data from being sent?
I'm building a file upload handling library in Node.js. I'm talking about raw http.IncomingMessage-type requests, I'm not using Express.
Let's say the library consists of a Transform stream, which ...
-1
votes
1
answer
299
views
audio only plays on http not https
I have an audio live stream on via shoutcast server and it plays fine on http but doesn't play on https.
I currently have the stream address as http. I've tried switching the stream address to https ...
0
votes
2
answers
2k
views
How to read incoming stream from API in flutter using http package asynchronously?
I am working on a Flutter application that needs to receive data from an API as a stream and process each chunk of data as soon as it is received. My API sends data in chunks, and I want to read this ...
1
vote
1
answer
564
views
Stream encountered HTTP error: 404 HTTP error response text
def start_streaming_tweets(self, search_term):
self.filter(track=search_term, stall_warnings=True, languages=["en"])
if name == 'main':
twitter_stream = TweetListener(consumerKey, ...
0
votes
0
answers
249
views
Reading a ChunkedEncodingReadStream will always wait until complete body
I have the following (exemplary) code:
var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new("Bearer", apiKey);
var requestMessage = new HttpRequestMessage(...