Comments (15)
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.
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.
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.
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.
is the new code already available?
Original comment by [email protected]
on 7 Nov 2010 at 3:51
from lightopenid.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- version 0.5 example works but not version 0.6 HOT 3
- Ax/SReg Params may be unsigned
- LightOpenId constructor fails when trusted root URL is less than 8 chars
- Problem with curl request on a server
- Missing: A License File HOT 2
- add composer support HOT 1
- wrong mimetype check in openid.php ? HOT 3
- Use Steam as provider HOT 1
- #-comments HOT 6
- returning clamed_id is a wrong approach HOT 5
- magic get/set methods HOT 3
- LightOpenID magic properties do not work with Twig template engine due to lack of __isset
- New release HOT 1
- keep waiting for localhost HOT 2
- Validation fails when there are accent in the required variable HOT 2
- Yahoo OpenID not working on newer versions of PHP/cURL [patch proposed]
- The regular expressions in htmlTag parse some valid responses incorrectly
- Support for OpenID Connect? HOT 1
- How to select eid applet language ?
- Unregistered domain error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightopenid.