Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when client set keep-alive,server keepalive_timeout is less,upload image(eg. size: 1M ) more times will fail. #394

Open
shiqiang124 opened this issue Aug 14, 2014 · 1 comment

Comments

@shiqiang124
Copy link

bug #94 is still exist.
( the bug reproduce test code: https://github.com/shiqiang124/asi-http-request/blob/master/iPhone%20Sample/UploadViewController.m )

the bug happen need follow setting:

1.set keep-alive,and need Content-Type:multipart/form-data, image more than 1M
request setShouldAttemptPersistentConnection:YES
request setPersistentConnectionTimeoutSeconds:60
request setTimeOutSeconds:60
request setPostFormat:ASIMultipartFormDataPostFormat
2. nginx
keepalive_timeout 5s // less than setPersistentConnectionTimeoutSeconds
3. don't use proxy (eg.Charles )

@RbBtSn0w
Copy link

It's about time out error.

setShouldAttemptPersistentConnection:NO

http://stackoverflow.com/questions/8317662/asihttprequest-request-sent-twice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants