dsf23223 2013-07-26 19:23
浏览 41

来自服务器的响应延迟超过24小时 - 是否可能?

php: My question is about the project that I want to develop using LAMP (Linux, Apache, mysql, php,) and html on the server with a shared hosting.

I want a user to enter a number into the <input type="text"> on my web-page, click "get the result" and get the result (display at another page or use ajax request - whatever).

To calculate the result it takes up to 24 hours. Is it possible to write such a project so the user's browser wait up to 24 hours? Are there any limit on dialogues between user's browser and server with a shared hosting? I mean is it limited by less than 24 hours?

Should I try this project or I'd better write it using another technologies?

  • 写回答

4条回答 默认 最新

  • duanjingwei7239 2013-07-26 19:56
    关注

    Technically, yes, you can do ajax long-polling. A request stays open as long as you need it to (consuming web server resources) until the response is generated and returned to the user. Whether it's a good idea or not... You can't really expect a user to keep a browser window open for that long. And that's just one reason.

    评论

报告相同问题?

悬赏问题

  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用