• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Long responses, without a session?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Long responses, without a session?


  • Subject: Re: Long responses, without a session?
  • From: Samuel Pelletier <email@hidden>
  • Date: Tue, 29 May 2018 09:42:05 -0400

Mark,

That's a good solution if your long running task execution time is within your
adaptor read timeout.

Samuel


> Le 29 mai 2018 à 06:02, Mark Wardle <email@hidden> a écrit :
>
> Thanks Samuel. Perhaps I should do this purely in the browser in JS and hit a
> REST endpoint and then pass a ticket to a WO DA when I know credentials are
> correct.
>
> Mark
>
> On Thu, 24 May 2018 at 22:39 Samuel Pelletier <email@hidden
> <mailto:email@hidden>> wrote:
> Hi Mark,
>
> I've never done that with WO but it is possible to return partial data to the
> browser and have it rendered bi using chunked response. I do not know if it
> is possible to force WO to flush the response content to the client and keep
> adding content after...
>
> If you can validate that the request is from a human and look valid, you may
> defer the session creation after this validation and have a quick response
> for failure.
>
> Otherwise, just create session with very short lifespan like 5 minutes with
> setTimeOut(5*60) in the session constructor and adjust it after the
> successful logon with WOSessiion.setTimeOut(3*3600); // for 3 hours
>
> I now tend to add an AjaxPing to my wrapper and use shorter session.
>
> Regards,
>
> Samuel
>
>
> > Le 24 mai 2018 à 17:18, Mark Wardle <email@hidden
> > <mailto:email@hidden>> a écrit :
> >
> > Hi all,
> >
> > I am cleaning up some code and identifying some long-acting responses that
> > sometimes take 2-3 seconds because they call external services over a
> > network. I'd like to turn them into long responses to show users that
> > something is happening and also prevent alerts in my log files. One of the
> > sometimes slow actions is logging in via a KDC.
> >
> > I have found ERXLongResponse which looks as if it will do the trick but it
> > is unclear to me whether this will work for user login. My landing page
> > using exclusively direct actions to prevent inadvertent session creation.
> > Is there a way of running a long response task without creating a session?
> >
> > Many thanks,
> >
> > Mark
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list      (email@hidden
> > <mailto:email@hidden>)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden <mailto:email@hidden>
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Long responses, without a session? (From: Mark Wardle <email@hidden>)
 >Re: Long responses, without a session? (From: Samuel Pelletier <email@hidden>)
 >Re: Long responses, without a session? (From: Mark Wardle <email@hidden>)

  • Prev by Date: Re: Long responses, without a session?
  • Previous by thread: Re: Long responses, without a session?
  • Index(es):
    • Date
    • Thread