Commit 72d61906 authored by Dennis Willers's avatar Dennis Willers 🏀

double \n say headers are done reading

parent 396a507b
Pipeline #416 passed with stages
in 2 minutes and 41 seconds
...@@ -74,7 +74,7 @@ server.on('connection',function(socket){ ...@@ -74,7 +74,7 @@ server.on('connection',function(socket){
.then(res => { .then(res => {
console.log('Prepare: ', res.headers, res.data); console.log('Prepare: ', res.headers, res.data);
//echo data //echo data
var is_kernel_buffer_full = socket.write(JSON.stringify(res.headers) + JSON.stringify(res.data) + '\n'); var is_kernel_buffer_full = socket.write(JSON.stringify(res.headers) + '\n\n' + JSON.stringify(res.data) + '\n');
if(is_kernel_buffer_full){ if(is_kernel_buffer_full){
console.log('Data was flushed successfully from kernel buffer i.e written successfully!'); console.log('Data was flushed successfully from kernel buffer i.e written successfully!');
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment