andreasgal/j2me.js — pull request #375 by mykmelez (2014-10-01 01:08:19+00:00)
Title: disable CGraphicsUtil.draw9pcsBackground (works around #317)

This is not yet ready to merge. But I'm requesting a pull so folks know about it.

CGraphicsUtil.draw9pcsBackground is the method that takes so long—when a midlet uses it to draw part of a modal interstitial while using a socket—that it causes the connection to close before the transaction is complete (presumably the server times out and closes the connection after not receiving any data for a while).

Currently, this branch just stubs out the method, which makes the interstitial look funny but the transaction successful. We should instead make the method fast.