TCP_Process_ack() unblocks RTCS_selectset() regardless of sockset

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

TCP_Process_ack() unblocks RTCS_selectset() regardless of sockset

ソリューションへジャンプ
1,167件の閲覧回数
daido
Contributor II

I'm using MQX 4.0.2.2.

TCP_Process_ack() unblocks RTCS_selectset() regardless of sockset.

Undesired Scket handle is returned.

It was no such a thing until in MQX 4.0.1.

Already corrected in MQX 4.1.0 ?

0 件の賞賛
返信
1 解決策
917件の閲覧回数
Martin_
NXP Employee
NXP Employee

You're right, there is such problem. In sosel.c, function _SOCK_select_signal:

         /* check if sock is on the select waiting list (array) */

//         if (!flag)

         {        

            for (i = 0; i < parms->sock_count; i++)

            {

                if (parms->sock_ptr[i] == sock)

                {

                    break;

                } 

            }

              

            if(i >= parms->sock_count)

            {

                continue;

            }

              

         }

I think just comment out line 2 in the above code snippet should help.  (remove the !flag condition).

There will be a new BSD-like select() function in next MQX release. MQX 4.1.0 still has this problem.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
918件の閲覧回数
Martin_
NXP Employee
NXP Employee

You're right, there is such problem. In sosel.c, function _SOCK_select_signal:

         /* check if sock is on the select waiting list (array) */

//         if (!flag)

         {        

            for (i = 0; i < parms->sock_count; i++)

            {

                if (parms->sock_ptr[i] == sock)

                {

                    break;

                } 

            }

              

            if(i >= parms->sock_count)

            {

                continue;

            }

              

         }

I think just comment out line 2 in the above code snippet should help.  (remove the !flag condition).

There will be a new BSD-like select() function in next MQX release. MQX 4.1.0 still has this problem.

0 件の賞賛
返信