Results 1 to 16 of 16

Thread: Disconnecting & connecting tcpsocket with proxy problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Posts
    15

    Default Re: Disconnecting & connecting tcpsocket with proxy problem

    1)Only fin,ack from my app and previous ack packet sequence and ack numbers equal.

    2)Uh, i haven't understood a question.
    fin,ack packet's rst flag is not set.
    Or you talk about Qt class qtcpsocket's some kind of reset flag?

    3) socket disconneting in the same way, but even after first syn|syn,ack|ack chain( i mean no http connection | http conenction established here )
    Last edited by altVis; 6th April 2008 at 06:47.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Disconnecting & connecting tcpsocket with proxy problem

    Quote Originally Posted by altVis View Post
    1)Only fin,ack from my app and previous ack packet sequence and ack numbers equal.
    I don't mean "equal". Do they match according to the TCP protocol? Syn numbers have to match with ACK numbers and vice-versa.

    2)Uh, i haven't understood a question.
    fin,ack packet's rst flag is not set.
    Or you talk about Qt class qtcpsocket's some kind of reset flag?
    Yes, I mean the rst flag. If it's not set, the connection is not terminated but gracefully closed.

    3) socket disconneting in the same way, but even after first syn|syn,ack|ack chain( i mean no http connection | http conenction established here )
    Could you provide a minimal compilable example reproducing the problem?

  3. #3
    Join Date
    Mar 2008
    Posts
    15

    Default Re: Disconnecting & connecting tcpsocket with proxy problem

    Quote Originally Posted by wysota View Post
    I don't mean "equal". Do they match according to the TCP protocol? Syn numbers have to match with ACK numbers and vice-versa.
    Yes. Of course.

    Quote Originally Posted by wysota View Post
    Yes, I mean the rst flag. If it's not set, the connection is not terminated but gracefully closed.
    Yeap, i know. Same thing like with disconnectFromHost.

    Quote Originally Posted by wysota View Post
    Could you provide a minimal compilable example reproducing the problem?
    Well. For now i have solved problem in a horrible way:

    Qt Code:
    1. delete socket;
    2. socket = new QTcpSocket(this);
    3. socket->connectToHost(...) // new connection;
    To copy to clipboard, switch view to plain text mode 

    I'll try to write some code later.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.