Coder Social home page Coder Social logo

Comments (13)

litespeedtech avatar litespeedtech commented on May 16, 2024

Which version of openlitespeed are you using?
Do you have a simple script that can be used to reproduce this problem?

from openlitespeed.

 avatar commented on May 16, 2024

Using 1.4.11, can access my websites through SSL but when I'm processing data through POST request doesn't work and output the NSPOSIXErrorDomain.

Can't give you a simple script to reproduce the problem, but here are all the details :

  • SSL is working through GET request and everything is working fine, sometimes, Safari throw an error and say that he couldn't establish a secured connection to the server but when reloading, it does work.
  • POST requests doesn't work and shuts down the request with NSPOSIXErrorDomain

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 16, 2024

This bug should have been fixed, please try below patch:

diff --git src/http/httpsession.cpp src/http/httpsession.cpp
index e85b394..afdbba9 100644
--- src/http/httpsession.cpp
+++ src/http/httpsession.cpp
@@ -373,7 +373,7 @@ void HttpSession::setupChunkIS()
assert(m_pChunkIS == NULL);
{
m_pChunkIS = HttpGlobals::getResManager()->getChunkInputStream();

  •    m_pChunkIS->setStream(getStream());
    
  •    m_pChunkIS->setStream(this);
     m_pChunkIS->open();
    
    }
    }
    diff --git src/http/httpsession.h src/http/httpsession.h
    index 6cf1e9c..22e46a3 100644
    --- src/http/httpsession.h
    +++ src/http/httpsession.h
    @@ -73,7 +73,8 @@ enum HttpSessionState

-class HttpSession : public LsiSession, public HioHandler
+
+class HttpSession : public LsiSession, public InputStream, public HioHandler
{
HttpReq m_request;
HttpResp m_response;

from openlitespeed.

 avatar commented on May 16, 2024

error: ‘HttpGlobals’ has not been declared

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 16, 2024

Sorry, that's for 1.3 branch.
Actually, 1.4.11 includes that fix, maybe it is something else, we need investigate more .

So, this problem even happen to plain http connection? not likely related to SPDY or HTTP/2.

from openlitespeed.

 avatar commented on May 16, 2024

@litespeedtech only occurs on HTTPS, doesn't happen in plain HTTP connection.

It doesn't seems to affect GET requests but it behave like this on POST / FORM POST requests, and sometimes block the connection to the servers, could also be a Safari policy related issues ?

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 16, 2024

Please turn on full debug logging, reproduce the problem, then send error.log to bug@litespeed...

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 16, 2024

Which browser are you testing? the one from El Capitan 10.11, earlier version does not support HTTP/2 as I know.

The log shows the response has been successfully processed, what follows that in the log, for that connection xxxxxxxxxxxx? did the connection go away immediately after that?

from openlitespeed.

 avatar commented on May 16, 2024

@litespeedtech Actually on El Capitan can't test now on Yosemite but it does also occurs on SPDY/2 and SPDY/3, but however El Capitan does use Safari 9 and Safari 9 is bassicly supporting HTTP2 see here

I'll do another log with the full stack

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 16, 2024

The log shows a few crashes. just search for "AutoRestarter", however, there is no core dump created.
We need to make it dump the core file. then we can find out what causing it.

If you server is using abrtd, you may need to stop it and restore /proc/sys/kernel/core_pattern to default core.%p

from openlitespeed.

 avatar commented on May 16, 2024

@litespeedtech These AutoRestarter seems not related to the problem, no core dump are created even through enabling full core dump

from openlitespeed.

 avatar commented on May 16, 2024

@litespeedtech Reinstalled OLSWS and reconfigured, the problem seems to have disappeared..

I'll close this for the moment, I'll re-open this if it occurs again.

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 16, 2024

ip removed.

from openlitespeed.

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.