Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Pospone reponse to the user
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Pollak  
View profile  
 More options May 19 2012, 4:01 pm
From: David Pollak <feeder.of.the.be...@gmail.com>
Date: Sat, 19 May 2012 13:01:18 -0700
Local: Sat, May 19 2012 4:01 pm
Subject: Re: [Lift] Pospone reponse to the user

On Sat, May 19, 2012 at 11:17 AM, Lukasz Kuczera <kuk...@gmail.com> wrote:
> Well both, I can solve my problem different way but would like to know if
> that is possible in Lift and if not how that could be done, sounds to me
> like some continuations stuff maybe but I don't know how requests are
> handled that deeply.

> Ok so our problem is to prevent spamming our login page with requests.
> Some sites give captcha after few unsuccessful log in attempts. I thought
> in first about delay after few. It should prevent it but captcha solution
> might be good here as well.

Just doing a Thread.sleep if you've got a bunch of failed logins should be
fine.  Blocking 3 or 4 threads at once isn't going to cause issues.
 Blocking 1,000 threads at a time with Thread.sleep could cause issues.

> On Saturday, May 19, 2012 5:44:43 PM UTC+2, David Pollak wrote:

>> On Sat, May 19, 2012 at 1:32 AM, Lukasz Kuczera <kuk...@gmail.com> wrote:

>>> I'd like to delay http response sent to the user. Naive solution is to
>>> use Thread.sleep but it will starve the application out threads. Is it
>>> possible to do it in more graceful way ?

>> Are you talking about a full page load or a REST request?  Why the delay?

>>>  --
>>> Lift, the simply functional web framework: http://liftweb.net
>>> Code: http://github.com/lift
>>> Discussion: http://groups.google.com/**group/liftweb<http://groups.google.com/group/liftweb>
>>> Stuck? Help us help you: https://www.assembla.com/wiki/**
>>> show/liftweb/Posting_example_**code<https://www.assembla.com/wiki/show/liftweb/Posting_example_code>

>> --
>> Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro
>> Lift, the simply functional web framework http://liftweb.net
>> Follow me: http://twitter.com/dpp
>> Blog: http://goodstuff.im

>>  --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code

--
Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro
Lift, the simply functional web framework http://liftweb.net
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.