Coder Social home page Coder Social logo

Comments (15)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
Can't really debug this. I've registered with Yahoo, tested it, and can 
reproduce the bug. However, I don't think that it's LightOpenID's fault. I've 
checked the network traffic with wireshark -- Yahoo's server is sending a TCP 
RST packet at the end of the connection, i.e. it's resetting it. I have no idea 
why does it do so, and I can't really fix it (otherwise than adding an @ before 
file_get_contents).

If you think of any better solution, please tell me.

Original comment by [email protected] on 30 Oct 2010 at 12:08

  • Changed state: Accepted

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
I also have the error "file_get_contents(): SSL: Connection reset by peer" 
while trying to login with Yahoo  via  "http://me.yahoo.com" identity.

With cURL everything worked perfectly.
Thanks a lot.

Original comment by [email protected] on 1 Nov 2010 at 6:26

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
If I won't be able to fix it using php streams, I'll add the cURL support back 
(to be used by default if avaiable). However, since apparently not everyone has 
curl installed, I'd prefer a streams-based solution.

Original comment by [email protected] on 2 Nov 2010 at 2:08

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
I have added curl support again. It seems to work with yahoo without any 
problems.

Please verify that it works.

Original comment by [email protected] on 7 Nov 2010 at 11:56

  • Changed state: Fixed

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
is the new code already available?

Original comment by [email protected] on 7 Nov 2010 at 3:51

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
Of course it is, on gitorious.

http://gitorious.org/lightopenid/lightopenid/archive-tarball/master

Original comment by [email protected] on 7 Nov 2010 at 5:53

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
Sorry, was searching in the wrong place :)
I can confirm that this issue is resolved... no problems at all when logging in 
with Yahoo!

sidenote: using identi.ca works now too.

Thanks for fixing the issue!

Original comment by [email protected] on 7 Nov 2010 at 10:57

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
I run into this issue due to the save mode detection: `ini_get('safe_mode')`

If I remove the detection and use request_curl instead, it works fine.



Original comment by [email protected] on 12 May 2011 at 12:33

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
If you have safe_mode enabled and use curl, you get another warning instead 
(saying taht follow_location can't be used in safe_mode). And it's more common 
to get this warning than a connection reset from streams (which I can do 
nothing about), so I've decided to use streams with safe_mode.

Original comment by [email protected] on 12 May 2011 at 8:22

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
I was getting this same error only for yahoo logins.  (comparing to google).  
Turning off open_basedir fixed the issue.  Is there a better solution?  I have 
curl

Original comment by [email protected] on 16 May 2011 at 1:10

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
CURL does noe work well with either safe_mode or open_basedir, because in both 
cases, follow_location won't work. Since I can't really do anything about it, 
it's disabled by default if either open_basedir or safe_mode are enabled.

Original comment by [email protected] on 16 May 2011 at 8:53

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
When trying to log in with Yahoo I get that error message:
Warning: file_get_contents() [function.file-get-contents]: SSL: Connection 
reset by peer in /path/to/lightopenid/openid.php on line 345

Google on the other hand works perfectly. Any ideas?

Original comment by [email protected] on 11 Jan 2012 at 8:51

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
Have you tried using cURL instead of stream wrappers?

As I've said in a previous message in this bug, I can't do anything with the 
stream wrappers to make it work.

Original comment by [email protected] on 11 Jan 2012 at 10:31

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
Ah ok, I overread that.
Unfortunately I cannot use cURL because my cloud host relies on open_basedir, 
so that won't work for me. I think I read about a fix for that cURL problem 
somewhere, I'll go looking for that.

Original comment by [email protected] on 12 Jan 2012 at 10:29

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 22, 2024
I found the "fix" for the problem, and integrated it into the code. You can 
find it here: https://bitbucket.org/janhohner/janhohner-lightopenid/
Feel free to use my changes if you like them.

Original comment by [email protected] on 12 Jan 2012 at 2:25

from lightopenid.

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.