google / google/j2objc

Xcode 9 (Swift 4) - java.net.SocketTimeoutException

Open
#883 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6k
Forks
999
Avg merge
19h 20m
Merged PRs (30d)
14

Description

When I try to create a https POST Request i get a SocketTimeoutException when closing the OutputStream.

I use the latest j2objc version with the new Xcode 9 (iOS-App).

I attached an Example Project which also contains the Java "Request.java" Class.

Full Stack Trace:
`java.net.SocketTimeoutException
at 0x0000000102a61870 java.io.InterruptedIOException.() + 20
at 0x0000000102d34104 com.google.j2objc.net.DataEnqueuedOutputStream.close() + 208
at 0x0000000102a52dc4 webservice.Request.sendRequest() + 820`

[j2objcDemo.zip](https://github.com/google/j2objc/files/1318159/j2objcDemo.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.