Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  erlydb Timeout

Guest
Posted: Wed Oct 31, 2007 4:26 pm Reply with quote
Guest
= Stupid Question

How can I adjust the timeout in erlydb to 'infinity'?

== Background

I have a large table that I iterate over and (partially) read into
memory.
When executing the statement I get a timeout termination error:

Reason for termination ==
** {timeout,{gen_server,call,
[mysql_dispatcher,
{fetch,erlydb_mysql,
[[[[<<"SELECT

The same code runs fine with only a few records in the table.

I checked in the erlydb source and it seems that the timeout defaults
to 5 seconds.
But I was not able to figure out how to overwrite it.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Wed Oct 31, 2007 6:01 pm Reply with quote
Guest
I had a similar issue with Vimagi. I have a fix that I will check in
after I clean it up. For now, you can just change the timeout value
yourself and recompile.

Yariv

On Oct 31, 2007 9:25 AM, CK <christian.kebekus@gmail.com> wrote:
>
>
> = Stupid Question
>
> How can I adjust the timeout in erlydb to 'infinity'?
>
> == Background
>
> I have a large table that I iterate over and (partially) read into
> memory.
> When executing the statement I get a timeout termination error:
>
> Reason for termination ==
> ** {timeout,{gen_server,call,
> [mysql_dispatcher,
> {fetch,erlydb_mysql,
> [[[[<<"SELECT
>
> The same code runs fine with only a few records in the table.
>
> I checked in the erlydb source and it seems that the timeout defaults
> to 5 seconds.
> But I was not able to figure out how to overwrite it.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Thu Nov 01, 2007 5:56 am Reply with quote
Guest
Know what, you should be able to it already with the code from trunk.
When you call erlyweb:compile(), pass as an option '{erlydb_timeout,
infinity}'. (If 'infinity' doesn't work, try a very high value).

Yariv

On Oct 31, 2007 11:01 AM, Yariv Sadan <yarivsadan@gmail.com> wrote:
> I had a similar issue with Vimagi. I have a fix that I will check in
> after I clean it up. For now, you can just change the timeout value
> yourself and recompile.
>
> Yariv
>
>
> On Oct 31, 2007 9:25 AM, CK <christian.kebekus@gmail.com> wrote:
> >
> >
> > = Stupid Question
> >
> > How can I adjust the timeout in erlydb to 'infinity'?
> >
> > == Background
> >
> > I have a large table that I iterate over and (partially) read into
> > memory.
> > When executing the statement I get a timeout termination error:
> >
> > Reason for termination ==
> > ** {timeout,{gen_server,call,
> > [mysql_dispatcher,
> > {fetch,erlydb_mysql,
> > [[[[<<"SELECT
> >
> > The same code runs fine with only a few records in the table.
> >
> > I checked in the erlydb source and it seems that the timeout defaults
> > to 5 seconds.
> > But I was not able to figure out how to overwrite it.
> >
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist

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