incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1276) Android idling app makes HTTP requests for some reason
Date Tue, 11 Sep 2012 21:58:08 GMT

    [ https://issues.apache.org/jira/browse/CB-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453463#comment-13453463
] 

Joe Bowser commented on CB-1276:
--------------------------------

This is directly related to the default Native to JS bridge on Android being a HANGING_GET.
 People seem very keen to remove the Callback Server in a future version of Cordova for Android,
and this will most likely be removed in a future release.  I'll close as FUTURE or something
like that.
                
> Android idling app makes HTTP requests for some reason
> ------------------------------------------------------
>
>                 Key: CB-1276
>                 URL: https://issues.apache.org/jira/browse/CB-1276
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Tested on an android 2.3 device using cordova HEAD from today. The
default cordova app makes an http request to "http://127.0.0.1:randomport/long-random-uuid"
every few seconds even when the app gets backgrounded. See below log output
>            Reporter: max ogden
>            Assignee: Joe Bowser
>            Priority: Minor
>
> V/http    ( 1899): 115718 http2 read: HTTP/1.1 404 NO DATA
> V/http    ( 1899): 115719 http2 Request.readResponseStatus() 20 HTTP/1.1 404 NO DATA
> V/webkit  ( 1899): LoadListener: from: http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
major: 1 minor: 1 code: 404 reason: NO DATA
> E/wifi    ( 1390): [android_net_wifi_getRssiHelper] rssi -55
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webkit  ( 1899): LoadListener.headers
> V/http    ( 1899): 115728 http2 Request.readResponse() 1
> V/webkit  ( 1899): LoadListener.data(): url: http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/webkit  ( 1899): LoadListener.endData(): url: http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/http    ( 1899): 115734 http2 Request.readResponse(): done http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/http    ( 1899): 115735 http2 processRequests(): no persist, closing http://127.0.0.1:39524
> V/http    ( 1899): 115736 http2 Connection.clearPipe(): clearing pipe 0
> V/webkit  ( 1899): guessMimeTypeFromExtension: url = http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/http    ( 1899): 115740 http2 SEND pipe 0
> V/webkit  ( 1899): LoadListener.detachRequestHandle(): requestHandle: android.net.http.RequestHandle@44f387d8
> V/http    ( 1899): 115745 http2 RequestQueue.getRequest(http://127.0.0.1:39524) =>
null
> V/http    ( 1899): 115747 http2 DRAIN pipe 0
> V/http    ( 1899): 115747 http2 RequestQueue.getRequest() => null
> V/http    ( 1899): 115748 http2 ConnectionThread: Waiting for work
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webkit  ( 1899): startLoadingResource: url=http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081,
method=GET, postData=null, isMainFramePage=true, mainResource=false, userGesture=true
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/webkit  ( 1899): LoadListener constructor url=http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/webkit  ( 1899): [web] x-wap-profile added = http://gsm.lge.com/html/gsm/LG-E720b-M6-D1.xml
> V/webkit  ( 1899): getCookie: uri: http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
But can't find cookie.
> V/webkit  ( 1899): FrameLoader: http GET load for: http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/http    ( 1899): 115771 WebViewWorkerThread RequestQueue.queueRequest http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/webkit  ( 1899): LoadListener.attachRequestHandle(): requestHandle: android.net.http.RequestHandle@44fba9b8
> V/http    ( 1899): 115774 http3 RequestQueue.getRequest() => /636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/http    ( 1899): 115774 http3 ConnectionThread: new request http://127.0.0.1:39524
/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/http    ( 1899): 115774 http3 SEND pipe 0
> V/webkit  ( 1899): LoadListener.certificate: null
> V/http    ( 1899): 115777 http3 Connection.openHttpConnection() 2 http://127.0.0.1:39524
> V/webkit  ( 1899): LoadListener.certificate: null
> V/http    ( 1899): 115778 http3 Request.sendRequest() http://127.0.0.1:39524
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/http    ( 1899): 115792 http3 Request.requestSent() http://127.0.0.1:39524/636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/http    ( 1899): 115793 http3 READ pipe 1
> V/http    ( 1899): 115793 http3 processRequests() reading /636c8bbd-308f-4e84-b599-3fbb9a5ac081
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID
> V/webview ( 1899): NEW_PICTURE_MSG_ID {62,295,257,313}
> V/webcore ( 1899): WEBKIT_DRAW arg1=0 arg2=0 obj=null
> V/webcore ( 1899): webkitDraw start
> V/webcore ( 1899): webkitDraw NEW_PICTURE_MSG_ID
> this goes on forever. the NEW_PICTURE_MSG_ID comes from the little pulsing animation
in the default cordova app. shouldn't that also get paused when in a background state?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message