GithubHelp home page GithubHelp logo

Comments (4)

northys avatar northys commented on June 13, 2024

Chrome/curl reports it as empty response. Firefox/httpie reports it as EOF.

from spn.

northys avatar northys commented on June 13, 2024

I think, there are multiple cases when this error occurs. It happened right now when I opened link on a website, I thought it was blocked but F5 loaded it.

I think this can be caused by
a) connection in SPN network between SPN nodes failed / timeouts / whatever
b) the page being loaded through SPN network timeouts / cant connect to edge (last in SPN connection chain) node

from spn.

dhaavi avatar dhaavi commented on June 13, 2024

Hey @northys, thanks for reporting this!

This behavior is a result of how the SPN works. The TCP connection is "terminated" locally and then only the data goes through the SPN. This means that a TCP connection through the SPN will always succeed (within a couple ms) from the view of the application itself.
Should the connection through SPN or from the SPN exit to the destination fail, the connection will be closed without having sent any data, resulting in an EOF or "empty response" error.

You can see that this happens in the "Unexpected Logs" section of the provided debug data.

We can't spoof another response, as most of the time, the connection will be encrypted.

We can probably solve the most of these errors by checking if any data was returned and retrying the connection. This is something I will be looking into in the coming weeks.

from spn.

northys avatar northys commented on June 13, 2024

I would say that it is happening more likely on websites I (or maybe other) never visited. E.g. for websites opened from google search results... And it's always INSTANT.

https://support.safing.io/privatebin/?94e5263409f87d59#G4HA1z3ZezCuS6qTT6FPUKCJLAF71BhcWWAYY5yt3KNa

from spn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.