ok. sorry for delay. i haven't realized that the message was already
approved..

1) the UI thread. it is just a test application i made so i would be
sure that nothing else affects is.. the main application i experience
problems with is quite big and surely all network communication is
made in a separate thread

2) i have no idea what ARN is, but the file size is ok and nothing is
missing within the file. what i get is some blocks within a file are
corrupted

3) sendmultipart - you are correct... it's not a part of android sdk.
sorry. i missed the code. =) here it is:
                        HttpClient mHttpClient = new DefaultHttpClient();
                        final HttpParams params = mHttpClient.getParams();
                        HttpConnectionParams.setConnectionTimeout(params,
                                        REGISTRATION_TIMEOUT);
                        HttpConnectionParams.setSoTimeout(params, WAIT_TIMEOUT);
                        ConnManagerParams.setTimeout(params, WAIT_TIMEOUT);

                        HttpPost post = new HttpPost(uri);
                        post.addHeader(entity.getContentType());
                        post.setEntity(entity);
                        HttpResponse resp = mHttpClient.execute(post);


basically, it doesn't matter, cause i tried to perform network
operations using HttpUrlConnection and creating mulripart bundle by
hands and experienced same result

4) i was heavily testing it on thursday/friday and here is what i have
found:
the tcpdump on android device shows correct data. the tcpdumb on the
receiving machine shows corrupted data.
but! on android device the MTU is 1516 somehow, which is quite big i
assume. on the server packets received are 1514 bytes..
and when i lower MTU to 576 (whihc, i believe should be default to
PPP), it works PERFECT! so the problem is somewhere in a weak tcp/ip
stack implementation in froyo.
this doesn't solve the problem though, cause changing MTU is done
manually each time the interface is up. so i cannot do it with my
clients' devices.
i also tried to set chunked mode to send packets of 300 or 400 bytes
(should be like 700 bytes with all http headers i think). but it did't
give any result :(

any ideas of how it can be fixed? :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to