diff options
Diffstat (limited to 'provider_src/com/android/email/mail/transport/MailTransport.java')
-rw-r--r-- | provider_src/com/android/email/mail/transport/MailTransport.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/provider_src/com/android/email/mail/transport/MailTransport.java b/provider_src/com/android/email/mail/transport/MailTransport.java index 26801f93f..1767f19a7 100644 --- a/provider_src/com/android/email/mail/transport/MailTransport.java +++ b/provider_src/com/android/email/mail/transport/MailTransport.java @@ -191,6 +191,14 @@ public class MailTransport { } } + public int getReadTimeout() throws IOException { + return mSocket.getSoTimeout(); + } + + public void setReadTimeout(int timeout) throws IOException { + mSocket.setSoTimeout(timeout); + } + /** * Lightweight version of SSLCertificateSocketFactory.verifyHostname, which provides this * service but is not in the public API. |