IE11 and IE10 not showing pages from MQX server

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IE11 and IE10 not showing pages from MQX server

ソリューションへジャンプ
1,836件の閲覧回数
swapnilv
Contributor III

Hi ,I have mqx 4.0.2 installled on my device. I am using its web server and able to see HTML pages in IE9,Mozilla,Chrome,Safari.But when I try to open the same pages in IE11 and IE10,browser goes into waiting for response loop and does not show anything.I have to refresh the page again and then it fetches the page.But if I refresh it again,same problem occurs. I tried to debug it in IE11 development tool.But I see no response coming from MQX server.

0 件の賞賛
返信
1 解決策
1,471件の閲覧回数
RadekS
NXP Employee
NXP Employee

So, you probably have to increase number of maximum sessions.

This is one of parameters for HTTPSRV_init() function.

HTTP server example code allocates just two sockets (one for IPv4 and one for IPv6):

...

params[i].max_ses = 2;

...

server[i] = HTTPSRV_init(&params[i]);

...


Note: Default number of maximum available sockets in RTCS is six (RTCSCFG_SOCKET_PART_INIT). So, you will probably need modify also this parameter.


Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
8 返答(返信)
1,471件の閲覧回数
matthewkendall
Contributor V

From your described symptoms, my best guess would be that later versions of IE are opening more concurrent connections than your MQX HTTP server can support.

See for example the "Connections per Hostname" column in this table:

http://www.browserscope.org/?category=network

1,471件の閲覧回数
swapnilv
Contributor III

Hi Matthew,

Thanks for your valuable inputs.

Yes, The problem seems to be because of more concurrent connections that IE10(8 conncetions) and IE11 (13 connections) tries to open with MQX HTTP server.

How can I increase this number to support more concurrent connctions on MQX Server side ??

I have checked on internet that IE11 makes asynchronous requests to load scripts, images and this causes the problem. How can I overcome this??

I also tried a simple html page without any javascript with just 2 images in it. Still it causes the browser to go into waiting for response loop.

I think for images also IE11 opens separate connections concurrently and this causes the above problem.

See below code for your reference:

===================HTML code===============================

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>

<title>test3</title>

</head>

<body>

<img alt="mylogo1" height="80" src="IMG/logo1.jpg" width="150" />
<img alt="mylogo2" height="80" src="IMG/logo2.JPG" width="420" />

</body>

</html>

==========================================================

Let me know if you have any suggestions.

Thanks,

Swapnil

0 件の賞賛
返信
1,472件の閲覧回数
RadekS
NXP Employee
NXP Employee

So, you probably have to increase number of maximum sessions.

This is one of parameters for HTTPSRV_init() function.

HTTP server example code allocates just two sockets (one for IPv4 and one for IPv6):

...

params[i].max_ses = 2;

...

server[i] = HTTPSRV_init(&params[i]);

...


Note: Default number of maximum available sockets in RTCS is six (RTCSCFG_SOCKET_PART_INIT). So, you will probably need modify also this parameter.


Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,471件の閲覧回数
swapnilv
Contributor III

Hi Radek,

The solution suggested by you to increase number of maximum sessions worked for IE10 and IE11.

Thank you very much for your support.

Thanks,

Swapnil

0 件の賞賛
返信
1,471件の閲覧回数
swapnilv
Contributor III

Hi Radek,

Thanks for your reply..

I tried setting meta tag to force browser to use compatibility view. But same problem persists.

I have added simple html code below which does not work in IE11 but works fine with IE9 and other browsers.

=================html code========================================================================

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>

<title>test2</title>

<style type="text/css">

.auto-style15
{
font-family: Arial;
font-size: small;
color: #000000;
text-align: center;
position: static;
}


.auto-style28
{  
font-family: Arial;
font-size: small;
}

</style>

<script type="text/javascript" src="script/temprequest.js"></script>

<script type="text/javascript">
setInterval(replace,1000);
</script>
</head>

<body>


<table style="overflow: hidden; width: 250px;table-layout: fixed;visibility:visible;" id="Table1" class="auto-style28">
<tr>
<td class="auto-style15" id="datetime" style="width: 255px">
?
</td>   
</tr>
</table>

</body>

</html>

================================================================================

==============temprequest.js code==================================================

var counter=100;

function replace()

{

   document.getElementById('datetime').innerHTML = counter; 

   counter++;

}

================================================================================

If I write the replace function in the same html page; then IE11 works fine. But if I write it in external javascript file(temprequest.js) and include it in html; then IE11 goes into waiting for response loop on refresh.

Kindly let me know if you have any suggestions.

Thanks,

Swapnil

0 件の賞賛
返信
1,471件の閲覧回数
RadekS
NXP Employee
NXP Employee

Did you enable JavaScript?

https://support.microsoft.com/gp/howtoscript


Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,471件の閲覧回数
swapnilv
Contributor III

Hi Radek,

Yes, JavaScript is enabled. The problem seems to be because of more concurrent connections that IE11 tries to make with MQX server.

Thanks,

Swapnil

0 件の賞賛
返信
1,471件の閲覧回数
RadekS
NXP Employee
NXP Employee

Could you please edit html pages and add there meta tag for force the client browser to use the Compatibility View?

<head>

  <!-- Mimic Internet Explorer 9 -->

  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >

  <title>Freescale MQX Webserver</title>

</head>

If this will work, problem will be probably in some feature of IE which was disabled from IE10. For example in conditional comments:

http://msdn.microsoft.com/en-us/library/ms537512%28v=VS.85%29.aspx

After that you can digging on web for more useful information about IE10 changes (HTML5,…).

Of course, it depends on your web page implementation. MQX example web pages were tested on IE11 and we didn’t detect such behavior.


Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信