Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  Yaws session server, problem ?

seancharles
Posted: Wed Aug 15, 2007 9:27 pm Reply with quote
User Joined: 18 Jul 2007 Posts: 57
Here's the workflow that seems to cause problems:

Start browser.
Start yaws (+yaws session server).
Go to home page
Session start: new_session_cookie()
halt() the system.
Restart the system.
Refresh my page.
BANG!

As the session server has restarted it naturally loses all knowledge of any sessions it has dished out cookies for and so when the browser sends it back, all I get instead of my home page is this:
Code:

Internal error, yaws code crashed
yaws code at appmod:0 crashed or ret bad val:110
Req: {http_request,'GET',{abs_path,"/p/1"},{1,1}}

If I manually delete the cookie from within Firefox, restart the system and then try again everything is fine.

So, is it a bug (I make this accusation with the greatest of respect!) in yaws or have I just f**&#^#-d up again >
Smile
Sean Charles.
View user's profile Send private message
seancharles
Posted: Wed Aug 15, 2007 9:34 pm Reply with quote
User Joined: 18 Jul 2007 Posts: 57
It's my fault.
Surprised
No, don't be surprised.
Embarassed Embarassed Embarassed

It has something to do with what I am passing back, I am sure I'll sort it out. I know that the setcookie() hands back

{header, ... }

which needs to be part of the response, the problem (as usual) is my code: when the cookie is *new* it works, when the cookie is already alive, I must be handing back something that yaws don't like.

My fault.
Sorry forums!
Smile
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum