[bug #56964] lwIP2.1.2 assumes it connected to remote server altough remote server sends "refuse" for the connection reques

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #56964] lwIP2.1.2 assumes it connected to remote server altough remote server sends "refuse" for the connection reques

David GIRAULT-2
URL:
  <https://savannah.nongnu.org/bugs/?56964>

                 Summary: lwIP2.1.2 assumes it connected to remote server
altough remote server sends "refuse" for the connection reques
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: chunkar
            Submitted on: Sun 29 Sep 2019 10:38:44 AM UTC
                Category: TCP
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.1.1

    _______________________________________________________

Details:

I came across an issue while trying to connect to remote TCP server by using
non-blocking socket.
After sending the connection request by using lwip_connect, i am checking the
errno and then i checking whether it writable or not by using the lwip_select.
As known, when lwip_select returns "OK" then, it means client got connected to
remote server successfully but lwip_connect and lwip_select does not return
any error, although the connection request is refused by the remote TCP
server.

Note: Just for example, on ubuntu you can send "refuse connection request"
packet to clients when you follow the steps below:
1)nc -l 45678
2)CTRL+Z = stop netcad
3) After stopping netcad, when you send a connection request, ubuntu will send
'refuse' packet to your connection request. When you try to connect with your
mobile phone, it will reported that it can not connect to remote server.
But when you try to connect with a non-blocking socket by using lwIP 2.1.2,
then lwip_connect returns EINPROGRESS and lwip_select, returns 'socket is
writable' / "OK" when the socket receives the 'refuse packet'.





    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56964>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #56964] lwIP2.1.2 assumes it connected to remote server altough remote server sends "refuse" for the connection reques

David GIRAULT-2
Follow-up Comment #1, bug #56964 (project lwip):

What exactly is a "refuse packet"? Could you try to keep to standard wordings
so everyone can understand what's meant?

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56964>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #56964] lwIP2.1.2 assumes it connected to remote server altough remote server sends "refuse" for the connection reques

David GIRAULT-2
Follow-up Comment #2, bug #56964 (project lwip):

Explanation is not clear, so i did submit new one because i couldn't update or
delete this.



    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56964>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #56964] lwIP2.1.2 assumes it connected to remote server altough remote server sends "refuse" for the connection reques

David GIRAULT-2
Update of bug #56964 (project lwip):

                  Status:                    None => Duplicate              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #3:

Ok, please don't do that next time. And if you need to, say so. I'll close
this one now.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56964>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel