Results 1 to 3 of 3

Thread: QNetworkAccessManager::post() never returns

  1. #1
    Join Date
    Oct 2009
    Posts
    22
    Thanked 1 Time in 1 Post

    Default QNetworkAccessManager::post() never returns

    I have a problem with QNetworkAccessManager that after a network failure (plug pulled out for example), any requests made after the connection is restored result in a WSAEISCONN error from the QNativeSocketEngine layer and they never fire send the request or fire the finished() signal.

    Should the QNetworkAccessManager be deleted and recreated after the failure? I would think that after a WSAECONNRESET error that the connection would be dead and so reconnection would not be a problem but that doesn't seem to be the case here.
    Last edited by danc81; 20th October 2009 at 21:42.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QNetworkAccessManager::post() never returns

    WebKit uses QNetworkAccessManager, have you checked to see how that handles it?

  3. #3
    Join Date
    Oct 2009
    Posts
    22
    Thanked 1 Time in 1 Post

    Default Re: QNetworkAccessManager::post() never returns

    I didn't know that, I'll check it out. I have created a test app to try to reproduce the problem and I can't so something in my code is causing it but I've stripped it right back so the only real difference between the test app and the real app is the actual data being sent and the URL (same domain, different script) and it still has the problem, this will be an interesting one.

Similar Threads

  1. QSslSocke::supportSsl() returns false
    By oscar in forum Qt Programming
    Replies: 1
    Last Post: 9th September 2008, 18:51
  2. connect() returns true but slot not called
    By OriginalCopy in forum Qt Programming
    Replies: 6
    Last Post: 4th November 2007, 18:54
  3. QSvgRenderer::boundsOnElement returns incorrect QRectF
    By lfranchi in forum Qt Programming
    Replies: 8
    Last Post: 1st August 2007, 09:49
  4. Replies: 4
    Last Post: 8th July 2007, 14:26
  5. no record returns from stored procedure
    By mandal in forum Qt Programming
    Replies: 0
    Last Post: 26th April 2007, 14:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.