Results 1 to 7 of 7

Thread: timeout > 30

  1. #1

    Default timeout > 30

    Here is such problem:
    request is executed more than 30 seconds and nothing be not displayed as timeout to do more than 30 seconds?


    var ds = new Ext.data.Store({
    proxy: new Ext.data.HttpProxy({
    url: 'ajax_out_customers.php?sel_sessions=1&cust_m='+cust_id
    }),

    reader: new Ext.data.JsonReader({
    root: 'results',
    totalProperty: 'total',
    id: 'SESS_ID'

    }, [
    {name: 'SESS_ID', mapping: 'SESS_ID', type: 'int'},
    {name: 'START_DATE', mapping: 'START_DATE', type: 'date', dateFormat: 'd.m.Y H:i'},
    {name: 'END_DATE', mapping: 'END_DATE', type: 'date', dateFormat: 'd.m.Y H:i'}
    ]),
    // turn on remote sorting
    remoteSort: true
    });

    var cm = new Ext.grid.ColumnModel([
    {
    id: 'SESS_ID',
    header: "SESS_ID",
    width: 1,
    hidden: true
    },
    {
    header: "Начало сесии",
    dataIndex: 'START_DATE',
    width: 150,
    renderer: Ext.util.Format.dateRenderer('d.m.Y H:i')
    },{

    header: "Окончание сесии",
    dataIndex: 'END_DATE',
    width: 150,
    renderer: Ext.util.Format.dateRenderer('d.m.Y H:i')
    }
    ]);
    cm.defaultSortable = true;

    var grid = new Ext.grid.Grid('grid-paging', {
    ds: ds,
    cm: cm,
    selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
    enableColLock:false,
    loadMask: true
    });

    grid.render();

    var gridFoot = grid.getView().getFooterPanel(true);

    // add a paging toolbar to the grid's footer
    var paging = new Ext.PagingToolbar(gridFoot, ds, {
    pageSize: 20,
    displayInfo: true,
    displayMsg: 'Выбрано строк {0} - {1} of {2}',
    emptyMsg: "No topics to display"
    });

    ds.load({params:{start:0, limit:20}});

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Are you saying you need to increase the timeout? If so, you should be able to pass a timeout config to the proxy.

  3. #3
    Ext User AlexJG's Avatar
    Join Date
    Mar 2007
    Location
    Cambridge, England
    Posts
    53

    Default

    Do you mean php timeout? If so then ....

    30 seconds is a long time for a script to be running so first I would check what the script is doing.

    If you really need to increase the php timeout use set_time_limit in PHP

    Alex
    Regards

    Alex

    You want it done when !!!!

  4. #4

    Default

    Quote Originally Posted by tryanDLS View Post
    Are you saying you need to increase the timeout? If so, you should be able to pass a timeout config to the proxy.
    As this do? This not restriction PHP.

  5. #5

    Default

    HELP!!!

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,891

    Default

    You've been helped. tryanDLS explained what to do, you should now look at the docs.

    HttpProxy constructor accepts a Connection:

    http://extjs.com/deploy/ext/docs/out...HttpProxy.html

    Connection has configurable timeout:

    http://extjs.com/deploy/ext/docs/out...config-timeout

  7. #7

    Default

    This morning I tried to set the timeout to zero (0), I assume this would mean unlimited timeout isnt it?

    I did that because I'm calling a method which takes about 1-10 minutes to finish, is it wise to allow unlimited timeout? Or is there any better way to do this?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •